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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.