Log in

View Full Version : variable in request form - undefined



snooper
11-13-2009, 03:58 AM
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:

--------------------------------------------------------------------------


<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:



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!

djr33
11-13-2009, 04:51 AM
Try to print the sent variable to understand exactly what is being set.

Otherwise, there is a chance the server configuration changed enough, somehow, that the form no longer functions as it did before. Without thorough testing it is difficult to say more.

snooper
11-13-2009, 06:15 AM
thanks.
i have printed, and i get: 'undefined' :)

any idea what server config could refer to something like this?? (I have control over IIS)