[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tip: press "Return" button to invoke CGI script in a multiple input fields



 
    
press "Return" button to invoke CGI script immediately in a 
multiple input fields form

Sample page:
============

<html>
<head>
<title>Bizarre Search image feature in IE 5.5</title>
<meta name="Author" content="Terrence Miao">
</head>
<body bgcolor=ffffff text=003399>
<form method=post action="/cgi-bin/search.pl">
<table border=1 align=center>
<tr><td align=center>
<p>Post Code</p>
<input type=text name="postcode" size=20 maxlength=100>
</td></tr>
<tr><td align=center>
<p>Stupid Name</p>
<input type=text name="stupidname" size=20 maxlength=100>
</td></tr>
<tr><td align=center>
<p>Damned pic</p>
<input type=image value="damnit" src="/images/damnit.gif">
</td></tr>
<tr><td align=center>
<p>last input line</p>
<input type=text name="lastline" size=20 maxlength=100>
</td></tr>
</table>
</form>
</body>
</html>

This page has been validated and successed in IE 5.5, failed in
Netscape.

The dirty trick in IE is that add at least one image input field, e.g:

	<input type=image value="damnit" src="/images/damnit.gif">

in the form.

Google