Print Page | Close Window

Syntax for passing parameters

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3752
Printed Date: 29 March 2026 at 8:10pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Syntax for passing parameters
Posted By: Awangku
Subject: Syntax for passing parameters
Date Posted: 22 June 2003 at 10:03pm

I have this codes in my ASP file. What I'm trying to do is to check whether the record submitted form a form exists in the database or not. If it exists, then I will be directed to another page.

<%
strStuff = Request.Form("Stuff")
.....
If strStuff = [a record in the database] Then
    Response.Redirect "record_exists.asp?ID=strStuff"
End If
%>

My question is, what is the correct syntax for the Response.Redirect parameter? I know the error is in the "ID=strStuff" but I have no idea how to fix that.

Can anyone help?




Replies:
Posted By: MadDog
Date Posted: 22 June 2003 at 10:52pm
Response.Redirect("record_exists.asp?ID=" & strStuff)

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: Awangku
Date Posted: 23 June 2003 at 2:14am

Thanks MadDog. I've completely forgotten that one.

What if I want to pass 2 or more parameters instead of one?



Posted By: TYSON
Date Posted: 23 June 2003 at 8:02am
Response.Redirect("record_exists.asp?ID=" & strStuff & "&ID2=" & strStuff2)


-------------
http://www.fuo-motorsports.com/ - http://www.fuo-motorsports.com/


Posted By: Awangku
Date Posted: 23 June 2003 at 6:58pm
Thanks Tyson. That's a lot of help.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net