0

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

3
Contributors
10
Replies
11
Views
7 Years
Discussion Span
Last Post by hielo
0

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.

0

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 .

0

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

0

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..

0

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
0

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

0

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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.