Jump to content

seach form method="get"


vinpkl

Recommended Posts

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

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.