...

View Full Version : A little help with mu logic



hughesmi
11-10-2007, 09:34 PM
I need a little help with my logic.

What i am trying to do is - if the secuirty number is true then allow me to submit my form, but I want to hide the Please verfiy button.

Here is what I have so far




<input name="strCAPTCHA" type="text" id="strCAPTCHA" maxlength="8" /><input type="submit" name="Submit" value="Please Verify"></td>
</tr>
<%
if Request.ServerVariables("REQUEST_METHOD") = "POST" then
strCAPTCHA = Trim(Request.Form("strCAPTCHA"))
if CheckCAPTCHA(strCAPTCHA) = true then
%>
<tr>
<td height="37" colspan="2" align="center"><b style="color:#00CC00">
Verified (<%=strCAPTCHA%>) <input name="Button1" type="submit" value="Send" style="height: 25px"></b></td>
</tr>
<%
else
%>
<tr>
<td height="37" colspan="2" align="center"><b style="color:#FF0000">Not
Verified.<br />Please Retry.</b></td>
</tr>
<%
end if
end if
%>

Spudhead
11-12-2007, 01:35 PM
Something like this?


<%

strRequestMethod = Request.ServerVariables("REQUEST_METHOD")

if strRequestMethod <> "POST" then ' no form has been submitted. Draw a form.

else ' they've submitted the form

strCAPTCHA = Trim(Request.Form("strCAPTCHA"))

if CheckCAPTCHA(strCAPTCHA) = true then ' they've submitted a valid form

else ' they've submitted an invalid form

end if

end if
%>

hughesmi
11-12-2007, 03:15 PM
cheers dude.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum