IIS ASP - Submit Form Data Approaches

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > June 2004 > Submit Form Data Approaches





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Submit Form Data Approaches
Matt

2004-06-26, 11:59 am

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"


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com