Aleks
asked on
ASP/VB Syntax
I have the code below which is giving me a syntax error, should be simple ... I hope.
<% ' If field is checked off
If (Qnrpg1.Fields.Item("email ").Value = "False")Then
input name="email" type="hidden" id="email" value="(ContactDetails.Fie lds.Item(" Email").Va lue)"
<% End If %>
It should check for the value of a field, if its "False" then should create that hidden field. This is the error:
<% ' If field is checked off
If (Qnrpg1.Fields.Item("email
input name="email" type="hidden" id="email" value="(ContactDetails.Fie
<% End If %>
It should check for the value of a field, if its "False" then should create that hidden field. This is the error:
if this isn't working, please post the error as it was absent from your first post
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The first two solutions gave me an error still, the third one worked fine. Ill try that one thanks !
Open in new window
if it's a string value, then you have it correct, you're just missing your closing %> tag:
Open in new window