MDanz Posted February 18, 2010 Share Posted February 18, 2010 below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the form i get this.. test.php?search=example&submit=search how do i get all of this together in the url? <form action='test.php?w=$sw&h=$sh' method='get'> <input type='text' size='35' name='search' /> <input type='submit' name='submit' value='search' style='font-size:10px' /> </form> Link to comment https://forums.phpfreaks.com/topic/192570-form-problem/ Share on other sites More sharing options...
GKWelding Posted February 18, 2010 Share Posted February 18, 2010 can you explain what you're hoping to do with this script? what does test.php contain? Link to comment https://forums.phpfreaks.com/topic/192570-form-problem/#findComment-1014572 Share on other sites More sharing options...
MDanz Posted February 19, 2010 Author Share Posted February 19, 2010 test.php is a search engine. is the original question possible? Link to comment https://forums.phpfreaks.com/topic/192570-form-problem/#findComment-1014584 Share on other sites More sharing options...
MDanz Posted February 19, 2010 Author Share Posted February 19, 2010 in short how do i get it to look like this? http://www.stackway.com/test.php?w=1440&h=900&search=example&submit=search i even tried this <?php $sw = $_GET['w']; $sh = $_GET['h']; $theurl = "http://test.php?w=$sw&h=$sh&search=example&submit=search"; ?> <form action="$theurl" method="get"> <input type="text" size="35" name="search" /> <input type="submit" name="submit" value="search" style="font-size:10px" /> </form> still comes up like "test.php?search=example&submit=search" Link to comment https://forums.phpfreaks.com/topic/192570-form-problem/#findComment-1014595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.