I have a piece of code which is baffling me.
I am trying to compare one variable, which has been loaded from a request.form object, with another one which has been loaded withing the ASP. For testing, I am comparing the two and if they are equal I am writing a message to the screen.
When I compare the two, I don't get any message, even though the values are equal when I write them out separately. If I plug a value into the request variable and compare them, I get my message.
Why won't my comparisons work with imported data?
Here is some sample code:
<form name=email method=post action="mailit.asp">
<input type=hidden name=secid value="match me">
secid = request.form("secid")
secid1 = "match me"
if secid1 = secid then
response.write "It matched!"