scrubbicus Posted June 9, 2009 Share Posted June 9, 2009 so i have a search thing that's included into the page and it's using the method of get so i can transfer that value through some odd pages. ive tried a few things in order to get the URL to stay the same because I need the information on the URL as well but the GET method is destroying the url. ok so my url is going to be at all times index.php?page=$_GET[$global] when i send the get form it does this index.php?query= or query= I need the $_GET['page'] superglobal in order for my website to work I've tried a few things on the actual form for what the action does like action="index.php?page=$_GET[$global]&" action="&" action="?" Link to comment https://forums.phpfreaks.com/topic/161538-how-do-i-get-the-form-with-a-method-of-get-to-keep-the-same-url-but-add/ Share on other sites More sharing options...
taquitosensei Posted June 9, 2009 Share Posted June 9, 2009 do a hidden field for page in your form then that will be passed along with all the other form fields in your url <input type='hidden' name='page' value='$page'> Link to comment https://forums.phpfreaks.com/topic/161538-how-do-i-get-the-form-with-a-method-of-get-to-keep-the-same-url-but-add/#findComment-852563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.