Jump to content

$_GET, Searching and URLs


conker87

Recommended Posts

Hey guys. I'm trying to make a search function for my site, I would like to use the $_GET method, rather than the post method (as I would like the search term to be included in the URL. I use includes in my urls, so the search page is:

/?content=search

However when I change the method to get in the code, the url changes to:

/?search=testing&submit=Submit

How could I change it to use the following, and remove the value for the submit button:

?content=search&search=testing

Link to comment
https://forums.phpfreaks.com/topic/126443-_get-searching-and-urls/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.