[PHP] Passing variables through url with a form |
[PHP] Passing variables through url with a form |
Pieman |
Mar 5 2008, 04:03 PM
Post
#1
|
Member Group: Members Posts: 43 Joined: 10-February 08 Member No.: 4,927 |
I'm making a search function for my blog and I want the variables of the form to be put in the url when submitted. So if for example someone searches for '123' I want the url to be search.php?search=123
Any suggestions? |
pandy |
Mar 5 2008, 04:59 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
So you want to use GET rather than POST.
http://htmlhelp.com/reference/html40/forms/form.html |
Pieman |
Mar 6 2008, 09:59 AM
Post
#3
|
Member Group: Members Posts: 43 Joined: 10-February 08 Member No.: 4,927 |
Heh, didn't think it'd be that simple.
|
Lo-Fi Version | Time is now: 25th April 2024 - 04:40 AM |