Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking if a form has been submitted

Status
Not open for further replies.

CharlieMike73

Programmer
May 17, 2002
120
US
Hi, I have a form (see sample code below) that I want to submit to itself.

The thing is I am not able to get it to recognise it has been submitted.

How do I do this?

=== SAMPLE CODE ===
<%
'''''''''''''''''''''''
' POST FORM SUBMITION
'''''''''''''''''''''''
Dim submitted

if submitted = &quot;1&quot; then
response.write &quot;Submitted&quot;
else
response.write &quot;Not Submitted&quot;
end if
%>
<form name=&quot;form1&quot; id=&quot;form1&quot; method=&quot;post&quot; action=&quot;<% response.write Page_Name %>&quot;>
<input name=&quot;submitted&quot; type=&quot;hidden&quot; id=&quot;submitted&quot; value=&quot;1&quot; />
<table width=&quot;50%&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>


 
you have to request the variable

Dim submitted
submitted = Request.Form(&quot;submitted&quot;)
....


Kris
- After all is said and done, a hell of a lot more is said than done.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top