javascript - submit form inside a href link html -
please help me in case, case 3 submit buttons submit different values, me need alter submit form link href html, same, how can this?
there submit forms:
<input type="submit" value="2" maxlength="1" name="post_request"> <input type="submit" value="3" maxlength="1" name="post_request"> <input type="submit" value="4" maxlength="1" name="post_request">
p.s. how send submit form, it's not problem, problem how send submit name , value.
thanks
<a href="someurl?post_request=2">value 2</a>
is equivalent of
<form method="get" action="someurl"> <input type="submit" value="2" maxlength="1" name="post_request"> </form>
if want utilize post
type you'll need populate hidden input using javascript
javascript html forms
No comments:
Post a Comment