langer123
There is a few things wrong with this, here is a fixed up version:
-----------------------
response.write "<form action='CheckLogin.asp"
If Request("WrongPw")= "True" Then
Response.Write "?WrongPw=True'"
End If
If Request("NoTrader") = "" Then
Response.Write "?NoTrader=True'"
End If
response.write " name='frmLogin' method='post'>"
------------------------------
1..IF conditions are not response.written and do no need to be sourounded by quotes. Paste your original version next to myn in your code editor, look at the code color difference (notePad will not show this - Homesite, EditPlus etc will show you)
2..If Request(""WrongPw"")= "True" : The form element name only needs on set of double quotes
3.."name=... : Should be " name=... Notice the space before the 'n' You always need a space between the properties of any tag. Lets say both conditions are false (no querystring appended) Your form tag would look like:
<form action='CheckLogin.asp'name='frmLogin' method='post'>
Should be
<form action='CheckLogin.asp' name='frmLogin' method='post'>
Wind is your friend
Matt
|