Reputation: 10994
I've got this code in html:
<form action="/login/" method="post">
<input type="text" name="login">
<input type="text" name="pass">
<input type="submit" value="login" name="type" >
<input type="submit" value="register" name="type" >
</form>
When I submit this form it sends a get
request with the value of the field of the button clicked. However I want to change the label of the button without changing the value sent in get
. Is it possible or not?
Upvotes: 1
Views: 1805
Reputation: 944008
Use a button element:
<button type="submit" name="type" value="register">Sign up for an account</button>
Note that old IE has problems with this.
Upvotes: 3