Forums

This topic is locked

redirect depending on if checkbox selected or not

Posted 15 Oct 2001 08:31:24
1
has voted
15 Oct 2001 08:31:24 Anton Sutterlueti posted:
hi all need some help.

i have the following problem, i have a checkbox in my form which allows a usr to be add to a newsletter or not so how do i do that.

1. if checkbox is selected i should redirect to a diffrent page and i send him a email with inventation, and add the info to a database

2. if the checkbox isnt selected i should redirect to a other asp page and i send him only a email of his invintation

what i thought is that i redirect him to 2 diffrent pages one which i request the from values from the page before and then preform a insert record on the one page and on the otherone i perform just the email sending

please help me on that problem
thx allot ToXiT


Replies

Replied 15 Oct 2001 09:50:29
15 Oct 2001 09:50:29 Viktor Farcic replied:
Pass data to other page. On that page insert something like:
<%
If Request("checkboxname" = True Then
Response.Redirect("Page1.asp"
Else
Response.Redirect("Page2.asp"
End If
%>

Insert Appropiate actions on pages Page1.asp & Page2.asp

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
hi all need some help.

i have the following problem, i have a checkbox in my form which allows a usr to be add to a newsletter or not so how do i do that.

1. if checkbox is selected i should redirect to a diffrent page and i send him a email with inventation, and add the info to a database

2. if the checkbox isnt selected i should redirect to a other asp page and i send him only a email of his invintation

what i thought is that i redirect him to 2 diffrent pages one which i request the from values from the page before and then preform a insert record on the one page and on the otherone i perform just the email sending

please help me on that problem
thx allot ToXiT



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

Replied 15 Oct 2001 13:54:57
15 Oct 2001 13:54:57 Anton Sutterlueti replied:
thx you help allot

its working now i also did it with a java script now i have two variations

thx again ToXiT

Reply to this topic