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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi there, I'm trying to store s

Status
Not open for further replies.

MaryChan

Programmer
Jan 4, 2001
9
SG
hi there,

I'm trying to store some variables into a database and at the same time pass it back to another page.

I'm able to store it in the database, but I have trouble passing it back to the other page.

I keep getting stuck over here.

Is this (&Curr) some keyword that I can't use or what???

pls help !!!!


Here's the error:

Microsoft VBScript compilation (0x800A03EA)
Syntax error
/softgreen/insert.asp, line 52, column 165
Response.Redirect("confirmation.asp?Desc1='" & Desc1 & "'&Value1='" & Value1 & "'&Amount='" & Amount & "'&Brand='" & Brand & "'&TransID='" & TransID & "'&PCurr='" & Currency & "'")
--------------------------------------------------------------------------------------------------------------------------------------------------------------------^


Here's the line of code that generates the error:

Response.Redirect("confirmation.asp?Desc1='" & Desc1 & "'&Value1='" & Value1 & "'&Amount='" & Amount & "'&Brand='" & Brand & "'&TransID='" & TransID & "'&PCurr='" & Currency & "'")



Thks.
 
I think the problem lies in the single quotes you have around your querystring variables. Remove them, and even better is to stote the full URL including the querystring in a variable, for example:

strMyURL = "confirmation.asp?Desc1= etc...
response.redirect("strURL")

Hope this helps...


<webguru>iqof188</webguru>
 
That's right, the quotes should go.
You'll need to make sure the spaces are replaced with %20, etc.
 
hi guys,

I've tried taking out the single quotes and replaced the spaces with %20 and my file is working now !!!!


Thanks a mill!!!

you guys really saved my life.

Thanks again for your help.

Really appreciate it.



Mary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top