If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP Passing variable using querystring

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-03, 12:17
jainpriyanka jainpriyanka is offline
Registered User
 
Join Date: Jan 2003
Posts: 7
ASP Passing variable using querystring

Here is my code:
I dont see what i am doing wrong. I am tryign to pass the variable exists from RegisterUser.asp to Register.asp

RegisterUser.asp
Response.Redirect "../Forms/Register.asp?exists=yes"

Register.asp
if (Request.Form("exists") = yes ) then
Response.Write " User name and password already exists, please make appropriate changes and try again "
end if


The Response.Buffer is also already set to TRUE.
Reply With Quote
  #2 (permalink)  
Old 02-17-03, 12:28
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: ASP Passing variable using querystring

Should that not be:

if (Request.Form("exists") = "yes" ) then
...

?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 02-17-03, 12:40
jainpriyanka jainpriyanka is offline
Registered User
 
Join Date: Jan 2003
Posts: 7
Re: ASP Passing variable using querystring

Thanx for the quick reply but I tried that as well. in fact i even have the following in my
Register.asp

sExists= Request.Form("exists")

Response.Write "here is the value of exists " & sExists

But Nothing is printed out for the value of sExists.

Your quick response will be highly appreciated...
thanx
Reply With Quote
  #4 (permalink)  
Old 02-17-03, 12:43
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: ASP Passing variable using querystring

I think you should be checking Response.QueryString not Response.Form
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On