| Author |
Submit Form Data Approaches
|
|
|
| I tried to figure out how many approaches to submit form data. Here's my
attempts.
Please advise. Thanks!!
1) html submit button, most commonly used.
<form name="formName" action="url" method="post">
<input type="submit">
2) html regular button, and a JavaScript to invoke the form.submit() method
<form action="url"
function submitForm()
{ //etc...
formName.submit();
}
<input type="button" onClick="submitForm()">
3) onsubmit event handling
<form name="formName" action="url" method="post" onsubmit="return
submitForm()">
function submitForm()
{ //etc...
//formName.submit(); //NOT NECESSARY!!
}
<input type="submit">
| |
| Evertjan. 2004-06-26, 1:16 pm |
| Matt wrote on 26 jun 2004 in microsoft.public.inetserver.asp.general:
> I tried to figure out how many approaches to submit form data. Here's my
> attempts.
> Please advise. Thanks!!
>
This is an ASP serverside NG,
Please ask a clientside NG.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
| |
| Bob Barrows [MVP] 2004-06-27, 7:48 am |
| Matt wrote:
> I tried to figure out how many approaches to submit form data. Here's
> my attempts.
> Please advise. Thanks!!
>
What's the problem?
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
|
|
|