vinpkl Posted December 13, 2008 Share Posted December 13, 2008 hi all i have my search form with method="get". when i type keyword like "nokia" in the search box then in the browser address bar i get the url as http://localhost/vineet/search.php?model=nokia&submit= in above url upto http://localhost/vineet/search.php?model=nokia is fine and it should come as it is. but i want to remove the extra &submit= Here is my form <form id="form1" name="search_form" method="get" action="http://localhost/vineet/search.php" style="margin-bottom:0px; width:150px"> <table width="150" border="0" cellspacing="0" cellpadding="2"> <tr> <td style="padding-top:10px"><img src="http://localhost/vineet/images/search.gif" alt="" width="145" height="54" /></td> </tr> <tr> <td align="left" style="padding-left:4px;padding-right:10px; font-size:11px;">Search by Product Name </td> </tr> <tr> <td align="right" style="padding-left:4px;padding-right:10px;"><input name="model" id="model" type="text" value="Enter Product Name" onfocus="this.value=''" class="search" style="width:140px;" /></td> </tr> <tr> <td align="right" style="padding-right:10px"><input name="submit" type="submit" class="search_bt" value="" /></td> </tr> </table> </form> vineet Link to comment https://forums.phpfreaks.com/topic/136829-seach-form-methodget/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 13, 2008 Share Posted December 13, 2008 Remove name="submit" from your form tag for the submit button. Link to comment https://forums.phpfreaks.com/topic/136829-seach-form-methodget/#findComment-714591 Share on other sites More sharing options...
vinpkl Posted December 13, 2008 Author Share Posted December 13, 2008 Remove name="submit" from your form tag for the submit button. hi PFMaBiSmAd thanks. its working fine. vineet Link to comment https://forums.phpfreaks.com/topic/136829-seach-form-methodget/#findComment-714593 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.