Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

If/Then/Else Statement HELP

Posted 06 Jun 2002 17:49:53
1
has voted
06 Jun 2002 17:49:53 Peter Lent posted:
I am trying to create a page that will detect a value passed from a form and redirect based on that value.

Here is the current script:
<%
If Request.Form("check"Then
Response.Redirect "../checkout_check.asp"

Else
Request.Form("paypal"Then
Response.Redirect "../checkout_paypal.asp"
End If
%>

It is not working. I am very new to this and would appreciate some help. I am sure it is very simple and I am just overlooking something.

THANKS

Peter

Replies

Replied 06 Jun 2002 17:56:15
06 Jun 2002 17:56:15 Viktor Farcic replied:
If Request.Form("FieldName" = "SomeValue" Then ...

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I am trying to create a page that will detect a value passed from a form and redirect based on that value.

Here is the current script:
&lt;%
If Request.Form("check"Then
Response.Redirect "../checkout_check.asp"

Else
Request.Form("paypal"Then
Response.Redirect "../checkout_paypal.asp"
End If
%&gt;

It is not working. I am very new to this and would appreciate some help. I am sure it is very simple and I am just overlooking something.

THANKS

Peter
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic
www.farcic.com
TalkZone Manager
Replied 06 Jun 2002 20:57:43
06 Jun 2002 20:57:43 David Behan replied:
Exactly what I was about to say vfarcic.

&lt;%
If Request.Form("check" = "Y or something else" Then
Response.Redirect("../checkout_check.asp"
End If

If Request.Form("paypal" = "Y or something else" Then
Response.Redirect("../checkout_paypal.asp"
End If
%&gt;



_________________________
David Behan - www.site-manager.com/af.asp?a=11&l=1tds9p6x2
Replied 06 Jun 2002 21:24:15
06 Jun 2002 21:24:15 Wil Turrin replied:
Is this a VBScript or Javascript /ASP fix?

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Exactly what I was about to say vfarcic.

&lt;%
If Request.Form("check" = "Y or something else" Then
Response.Redirect("../checkout_check.asp"
End If

If Request.Form("paypal" = "Y or something else" Then
Response.Redirect("../checkout_paypal.asp"
End If
%&gt;



_________________________
David Behan - www.site-manager.com/af.asp?a=11&l=1tds9p6x2
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 06 Jun 2002 21:31:31
06 Jun 2002 21:31:31 David Behan replied:
VB

_________________________
David Behan - www.site-manager.com/af.asp?a=11&l=1tds9p6x2
Replied 06 Jun 2002 21:52:28
06 Jun 2002 21:52:28 Wil Turrin replied:
Does anyone have an ASP/Javascript fix?

W

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
VB

_________________________
David Behan - www.site-manager.com/af.asp?a=11&l=1tds9p6x2
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic