Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2003
    Posts
    7

    Unanswered: 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.

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1

    Re: ASP Passing variable using querystring

    Should that not be:

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

    ?

  3. #3
    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

  4. #4
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1

    Re: ASP Passing variable using querystring

    I think you should be checking Response.QueryString not Response.Form

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •