i have a page where listing of items is done...
it also have searching feature with pagination...

when i submit searching then its working fine..
but during panigation i have to pass all query parameters through url..
to get it work..

it there any way to use pagination without using pasing parameter in url..!!!

thanks

how to escape passing value through url during pagination

you need to use the urlencode() function immediately before you create the pagination links:
http://us3.php.net/manual/en/function.urlencode.php

it there any way to use pagination without using pasing parameter in url

what you can do is see if your search box field is NOT empty. When it is NOT empty you update a session variable on your search script. Then at the point of searching your db, instead of searching based on the value of your search box (or search param querystring), you search based on what you have in your session variable.

i have a page where listing of items is done...
it also have searching feature with pagination...

when i submit searching then its working fine..
but during panigation i have to pass all query parameters through url..
to get it work..

it there any way to use pagination without using pasing parameter in url..!!!

thanks

you can pass the parameters in the query string and still can make them as they are very clean using .htaccess to rewrite your urls .

you can pass the parameters in the query string and still can make them as they are very clean using .htaccess to rewrite your urls .

Can we hide passing values through .htaccess..?
:O

can u provide link which can do this..?

here & you can search like this

but here u r only changing the format
user.php?uid=1; to user.php/uid/10

but i want to hide values from user..

but here u r only changing the format
user.php?uid=1; to user.php/uid/10

but i want to hide values from user..

Its up to you , how you want your url to look like, if you want it to look same for the all the users you can make it so

user.php?uid=1; to user.php

Its up to you , how you want your url to look like, if you want it to look same for the all the users you can make it so

user.php?uid=1; to user.php

Then how can i get value from url if i hide it..!!
i google it but i didnt find that u can hide values from url..!!
though u can modify the url format

i have a page where listing of items is done...
it also have searching feature with pagination...

when i submit searching then its working fine.

where is this page you are referring to?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.