Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Posts
    11

    Unanswered: Passing values from page to page

    I'm trying to pass some values much like the tutorial on webwizguide.com
    my first page is login_form.html

    <body bgcolor="white" text="black">
    <!-- Begin form code -->
    <form name="form" method="post" action="checkExist.asp">
    ID: <input type="text" name="ID" maxlength="20" size="20">
    <input type="submit" name="Submit" value="Submit"><br>
    &nbsp;
    </form>
    <!-- End form code -->


    i know that on checkExist.asp, to get the information sent i need to do...
    Request.Form("ID")

    how can i send this same information to another asp page once i do
    Response.Redirect "checkAgreement.asp

    and how can i tell checkAgreement.asp to check the DB slots that i either found or added to from checkExist.asp

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,424
    Provided Answers: 8
    there are a number of ways
    you could put the data into cookie and read on the next page
    Session("Cookie-Name")= "something"


    or

    Response.Redirect "checkAgreement.asp?ID=" & Request.Form("ID")

    then in the checkAgreement.asp
    ID = Request.QueryString("ID")

    or
    create a hidden feild in a form
    <input type="hidden" value="<%=Request.Form("ID")%>" name="ID" ID="ID">

    then
    do the Request.Form("ID") again

    a good thing to do is
    when placeing <input
    name it the same name as the feild name in the database
    make it easyer to find the error.
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Jun 2008
    Posts
    11

    Thumbs up

    Thank you for your help

Posting Permissions

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