(This question is related to this question)
I’ve a simple form:
<html>
<head>
</head>
<body>
<form name="aspnetForm" method="post" action="http://www.startupseeds.com/Default.aspx">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="..." />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWCALMyNWrBQKoz5H1CALlmOb9DgKmz6HzAwKf8bOXCQKC7qLKAwK5kNvVAQKk7amsA53tGBGr+Ji7LTI0eYkvquMZrF/g" />
<input name="ctl00$Login1$tbEmail" type="text" />
<input name="ctl00$Login1$tbPassword" type="password" />
<input type="image" name="ctl00$Login1$ibLogin" />
</form>
</body>
</html>
When I Change this:
<input type="image" name="ctl00$Login1$ibLogin" />
to this:
<input type="submit" name="ctl00$Login1$ibLogin" />
…it doesn’t work. The only difference in this code is type="submit" instead of type="image". I didn’t know even that there are differences between them (in the key/value in http) – How can I get "submit" to work?
Thank you.
The difference is that:
will result in two form fields:
ctl00$Login1$ibLogin.xandctl00$Login1$ibLogin.yto indicate what part of the image was clicked, although you have no image in your markup.From 17.4.1 Control types created with INPUT of the HTML 4.01 Specification: