Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

switching statement based on presence of querystring variable

Status
Not open for further replies.

ringadeal

Technical User
Jan 16, 2008
67
US
This code only uses the second "action=" version and therefore the querystring("Skip")=Yes is not passed on,
rather than testing for the presence of the querystring variable. Where am I going wrong?
Code:
<% If Request.QueryString("Skip")="Yes" Then %>
					  <form name="form1" method="get" action= "processform.asp?Skip=Yes" >
					  <% Else %>
					  <form name="form1" method="get" action= "processform.asp" >
					   <% End If %>
 
Have you tried printing out the value of Request.QueryString("Skip")? Its obviously not "Yes" if you can't get that first part to run.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top