I have the following submit button in HTML:
<input name="submit" type="submit" value="Sign In" />
I would like to convert it to an HTML link, by using this method:
<a href="#" onclick="document.getElementById('formname').submit()">Sign In</a>
but the form does not submit.
Thanks.
The full code is as follows:
<form id="form_freeuser" action="login.php" method="post" name="form_freeuser">
<div class="label"><label>Free User</label></div><input id="name" name="name" readonly="readonly" type="text" value="test" />
<input id="user_email" name="email" readonly="readonly" type="password" value="test" />
<input name="submit" type="submit" value="Sign In" />
</form>