Page 1 of 1
Adding to the URL when performing a search
Posted: Thu May 14, 2009 12:37 pm
by tomsace
Hi,
When I search my website the url is something like this page.php?search=KEYWORD&x=0&y=0.
What I need help with is adding a string to the url, for example page.php?search=KEYWORD&x=0&y=0&sort=name.
Any ideas?
Re: Adding to the URL when performing a search
Posted: Thu May 14, 2009 12:51 pm
by crazycoders
Your question is not really developped, i could simply tell you to append that string in your header('location:') but you're maybe not even doing that.
My guess when i see this is that you have a <input type="image"> as your submit button since i see x= and y= in your query string, but i may be wrong. If i'm right and you wish to submit something more with your query string, simply add:
Code: Select all
<input type="hidden" name="sort" value="name" />
Else, be more explicit or we can't really help with that kind of question
Re: Adding to the URL when performing a search
Posted: Thu May 14, 2009 1:42 pm
by tomsace
Wow thanks alot got it working with the code you provided.
Thanks alot.