Jan 25th, 2001, 10:59 AM
You're on earth and I'm not exactly sure what you're asking but maybe this will help.
A more complete HTML form would look something like:
<html>
<form method="post" ACTION="somescript.asp">
<input NAME="action" type=submit value="Button1">
<input NAME="action" type=submit value="Button2">
<input NAME="action" type=submit value="Button3">
</form>
</html>
Your FORM element needs to have an ACTION attribute that indicates what the form submits to. In this example it submits to an ASP. There lots of different things you can submit to but this IS an ASP forum. :)
You need to give your form elements a NAME attribute so that you can retrieve their VALUEs from the script you submit to.
In this example, I've called all the submit buttons 'action'. Inside an ASP script (or inside a webclass - I think - it's been a while) you would retrieve the values with something like:
vntSomeVariant = Request.Form("action")
In this case the value of Request.Form("name") would be 'Button1', 'Button2', or 'Button3' depending on what button you clicked.
Hope this helps,
Paul
A more complete HTML form would look something like:
<html>
<form method="post" ACTION="somescript.asp">
<input NAME="action" type=submit value="Button1">
<input NAME="action" type=submit value="Button2">
<input NAME="action" type=submit value="Button3">
</form>
</html>
Your FORM element needs to have an ACTION attribute that indicates what the form submits to. In this example it submits to an ASP. There lots of different things you can submit to but this IS an ASP forum. :)
You need to give your form elements a NAME attribute so that you can retrieve their VALUEs from the script you submit to.
In this example, I've called all the submit buttons 'action'. Inside an ASP script (or inside a webclass - I think - it's been a while) you would retrieve the values with something like:
vntSomeVariant = Request.Form("action")
In this case the value of Request.Form("name") would be 'Button1', 'Button2', or 'Button3' depending on what button you clicked.
Hope this helps,
Paul