W
Wayne Wengert
I am trying to use Request.Form to differentiate between when a page
containing a form is first loaded and when it is reloaded as a result of the
user clicking on the Submit button. Things are not working as expected. Some
snippets of my code are:
fSubmit = Request.Form("Submit1") = "Process"
Response.Write("Submit1 " & Request.Form("Submit1") & "<br>")
Response.Write("fSubmit: " & fSubmit & "<br>")
......
<form <%=Request.Servervariables("URL")%> method=post Name="cktlogin">
<b>Authorization Code: </b><Input Type="PASSWORD" Name="pw" Size="15"
Maxlength="15" Value="">
<p>
<INPUT NAME="Submit1" TYPE=Submit Value="Process">
</form>
I expected that the value of Request.Form("Submit1") would contain
"Process" only after the user clicks on the Submit button but it is set to
that value as soon as the page loads the first time?
What is the correct way to determine if the Submit button was clicked?
TIA
Wayne
containing a form is first loaded and when it is reloaded as a result of the
user clicking on the Submit button. Things are not working as expected. Some
snippets of my code are:
fSubmit = Request.Form("Submit1") = "Process"
Response.Write("Submit1 " & Request.Form("Submit1") & "<br>")
Response.Write("fSubmit: " & fSubmit & "<br>")
......
<form <%=Request.Servervariables("URL")%> method=post Name="cktlogin">
<b>Authorization Code: </b><Input Type="PASSWORD" Name="pw" Size="15"
Maxlength="15" Value="">
<p>
<INPUT NAME="Submit1" TYPE=Submit Value="Process">
</form>
I expected that the value of Request.Form("Submit1") would contain
"Process" only after the user clicks on the Submit button but it is set to
that value as soon as the page loads the first time?
What is the correct way to determine if the Submit button was clicked?
TIA
Wayne