mattboyslim
Programmer
I have a page where I'm displaying certain things depending on the querystring.
If I only use one request.querystring, then it works, but if I add an OR statement to show if either one of 2 cases is applicable, then it doesn't work.
OR
*If contact = anything, then the rating system should not display
*If contactcomplete = anything, then the rating system should not display
My code is here:
WORKS to not display the "rating system":
Code:
-------------------------
<% If request.QueryString("contact") = "" Then %>
<div style="padding-top:50px">Rate <%=(rs_attraction.Fields.Item("f_name").Value)%>:</div>
<% END IF %>
-------------------------
DOES NOT WORK
Displays the rating system:
Code:
--------------------------
<% If request.QueryString("contact") = "" or request.QueryString("contactcomplete") = "" Then %>
<div style="padding-top:50px">Rate <%=(rs_attraction.Fields.Item("f_name").Value)%>:</div>
<% END IF %>
--------------------------
Surely it is possible to accomplish this task. I just need the rating system to NOT show if the querystring contains either "contact" or "contactcomplete".
Thanks,
Matt
If I only use one request.querystring, then it works, but if I add an OR statement to show if either one of 2 cases is applicable, then it doesn't work.
OR
*If contact = anything, then the rating system should not display
*If contactcomplete = anything, then the rating system should not display
My code is here:
WORKS to not display the "rating system":
Code:
-------------------------
<% If request.QueryString("contact") = "" Then %>
<div style="padding-top:50px">Rate <%=(rs_attraction.Fields.Item("f_name").Value)%>:</div>
<% END IF %>
-------------------------
DOES NOT WORK
Displays the rating system:
Code:
--------------------------
<% If request.QueryString("contact") = "" or request.QueryString("contactcomplete") = "" Then %>
<div style="padding-top:50px">Rate <%=(rs_attraction.Fields.Item("f_name").Value)%>:</div>
<% END IF %>
--------------------------
Surely it is possible to accomplish this task. I just need the rating system to NOT show if the querystring contains either "contact" or "contactcomplete".
Thanks,
Matt