The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [PHP] Passing variables through url with a form
Pieman
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Pieman
post 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. tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 04:40 AM