variable in request form - undefined
I have had a system up and running for a few years, I inherited it from someone. They have a form submitting on a ASP/Javascript page.
The form looks like this:
--------------------------------------------------------------------------
Code:
<form method="post" action="registration.asp" name="form" id="form">
<table width="410" border="0" align="center" cellpadding="4" cellspacing="0">
<tr class="texto_nota">
<td>
<div align="right">Last name:</div>
</td>
<td>
<input type="text" name="lastname" size="60">
</td>
</tr>
<tr class="texto_nota">
<td>
<div align="right">First name:</div>
</td>
<td>
<input type="text" name="firstname" size="60">
</td>
</tr></table>
<p>
<input type="submit" id="Submit" name="Submit" value="Submit">
</p>
</form>
----------------------------------------------
And then the ASP:
Code:
if (String(Request("Submit")) != "undefined"){
..bla..
}
Now, it always used to do the “bla”, but now suddenly, no matter what, its taken the value of “submit” as undefined, and thus the “bla” is not being done. I have tried adding in specifically “.item” and .”form” in the request line, but nothing seems to work.
Any ideas?
Thanks!