How to hide button value in url?

Posted by Levani on Stack Overflow See other posts from Stack Overflow or by Levani
Published on 2010-06-13T17:27:35Z Indexed on 2010/06/13 17:32 UTC
Read the original article Hit count: 185

Filed under:

This is my search form:

   <form action="" method="get" name="search">
   <input name="s" type="text" size="40" value="<?php echo $_GET["s"]; ?>" />
   <input name="submit" type="submit" value="Search" />
   </form>

When someone clicks the search button the url in browser's address bar is something like this:

http://example.com/?s=someting&submit=Search

How can I change it so that it only displays:

http://example.com/?s=someting

Hope I'm clear...

© Stack Overflow or respective owner

Related posts about html