View Single Post
Old 03-07-2008, 09:52 AM   #1 (permalink)
gridsix
Contributing Member
 
gridsix's Avatar
 
Join Date: 03-04-08
Posts: 202
iTrader: 0 / 0%
gridsix is a jewel in the roughgridsix is a jewel in the roughgridsix is a jewel in the roughgridsix is a jewel in the roughgridsix is a jewel in the roughgridsix is a jewel in the roughgridsix is a jewel in the rough
Form button half working

I have a form that works when you click the submit button, but does not function when the user hits the 'enter' key. Here's the code:
Code:
<form action="index.php" method="get" name="search"> <table border="0" cellpadding="3" cellspacing="2"> <tr> <td align="right">Zipcode: <input name="zipcode" type="text" class="textbox" value="<?=$zipcode;?>" size="8" maxlength="8"/></td> <td><input type="button" value="Click to Get Gas Prices" onclick="dosearch(this.form);"/></td> </tr> </table> </form>
Thoughts?
gridsix is offline   Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links