Forums

This topic is locked

How to redirect to the right record

Posted 02 Sep 2002 19:12:28
1
has voted
02 Sep 2002 19:12:28 Kristian Waagsboe posted:
HI

I'm creating a poll here, easily enough until it comes to the vote page. The user has selected his choice, and the browser loads a popup where my update command is processed. Then I want to redirect the user to the results. My guess was something like this

<%
Dim referURL, completeURL
referURL = Request.QueryString("voteID"
completeURL = results.asp?pollID= + referURL
Response.Redirect(completeURL)
%>

(ASP VB)

I guess that wasn't right. Anybody know how to handle it correct?

.:. DWMX .:. MS IIS 5.1 .:. WinXP .:. MS Acsess XP

Replies

Replied 03 Sep 2002 09:10:12
03 Sep 2002 09:10:12 Vince Baker replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
HI

I'm creating a poll here, easily enough until it comes to the vote page. The user has selected his choice, and the browser loads a popup where my update command is processed. Then I want to redirect the user to the results. My guess was something like this

&lt;%
Dim referURL, completeURL
referURL = Request.QueryString("voteID"
completeURL = results.asp?pollID= + referURL
Response.Redirect(completeURL)
%&gt;

(ASP VB)

I guess that wasn't right. Anybody know how to handle it correct?

.:. DWMX .:. MS IIS 5.1 .:. WinXP .:. MS Acsess XP
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Response.write("The best line of code you can ever use"

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 03 Sep 2002 09:11:13
03 Sep 2002 09:11:13 Vince Baker replied:
Only one small problem I can see:

completeURL = "results.asp?pollID=" & referURL
Response.Redirect(completeURL)
%&gt;



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

I'm creating a poll here, easily enough until it comes to the vote page. The user has selected his choice, and the browser loads a popup where my update command is processed. Then I want to redirect the user to the results. My guess was something like this

&lt;%
Dim referURL, completeURL
referURL = Request.QueryString("voteID"
completeURL = results.asp?pollID= + referURL
Response.Redirect(completeURL)
%&gt;

(ASP VB)

I guess that wasn't right. Anybody know how to handle it correct?

.:. DWMX .:. MS IIS 5.1 .:. WinXP .:. MS Acsess XP
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Response.write("The best line of code you can ever use"

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 03 Sep 2002 16:51:33
03 Sep 2002 16:51:33 Kristian Waagsboe replied:
Thanks bakerv!

That was the solution

.:. DWMX .:. MS IIS 5.1 .:. WinXP .:. MS Acsess XP

Reply to this topic