T
Terence Parker
Hello,
I wish to submit a form with a link instead of a submit button - but there's
a catch : using the same form, I want to have different links that submit
that form to different locations. Here's a simplification of what I have so
far:
<form name="SubmitUsers" method="POST" action="process.php">
<input type="checkbox" name="username[]" value="Some value">
<input type="checkbox" ........... >
</form>
<a href="javascript: void(0);" onclick="document.SubmitUsers.submit();return
false;">
- this link above will submit the form, but it will submit the form to
"process.php" as defined in the initial <form> clause. What if I want
another link that, say, submits to "process2.php" instead? But I want to be
able to use the same checkboxes, so I don't want to have to redefine another
form for this.
Can this be done?
Thanks!
Terence
I wish to submit a form with a link instead of a submit button - but there's
a catch : using the same form, I want to have different links that submit
that form to different locations. Here's a simplification of what I have so
far:
<form name="SubmitUsers" method="POST" action="process.php">
<input type="checkbox" name="username[]" value="Some value">
<input type="checkbox" ........... >
</form>
<a href="javascript: void(0);" onclick="document.SubmitUsers.submit();return
false;">
- this link above will submit the form, but it will submit the form to
"process.php" as defined in the initial <form> clause. What if I want
another link that, say, submits to "process2.php" instead? But I want to be
able to use the same checkboxes, so I don't want to have to redefine another
form for this.
Can this be done?
Thanks!
Terence