passing 2 values from a page to another ASP page

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: passing 2 values from a page to another ASP page

    <a href="page2.asp?var1=Value1&var2=Value2">click</a>

    or use a link that invokes some javascript to post the form -if- you still
    want to use a form.

    Cheers
    Ken

    "Mohammed AM Dwaikat" <dwaikat@maktoob.com> wrote in message
    news:%23JKIVA3JEHA.2624@TK2MSFTNGP09.phx.gbl...
    : Hi folks
    :
    : I am new to asp, but I have 2 pages, I submit a value in a textbox, press
    : submit button to open the other page that searches an Access record and
    : display its contents. I want to replace the button with a hyperlink, I did
    ,
    : but how to pass the 2 variables , or one variable
    : Please if anyone can help
    :
    : Thank you
    :
    :


    Ken Schaefer Guest

  2. Similar Questions and Discussions

    1. Passing values from web page to php script
      Hi Everyone, First excuse my language and the way I explain things. I try to be clear enough. I do have a simple system that processes...
    2. Accessing Values of local variables in previous page when using custom error page
      Hello, I have created a nice funky 500 - 100 error page which gives a nicer error; happily loops through and supplies querysting information, all...
    3. Passing values from one page to another
      Hello all, -------------------------------------------- //Page0.php <a href="page1.php?empid=1">Enter</a>...
    4. passing variables from first page to third
      I am new to the world of ASP, and at the same time VBscript (also a firt time poster). I am currently creating a multiple page form where the...
    5. HELP! Passing from database to asp page allowing user input then passing to another database.
      My big problem is I'm a newbie working with someone else's code.(See code below) What I want to do is for the records that have a purchase order...
  3. #2

    Default passing 2 values from a page to another ASP page

    Hi folks

    I am new to asp, but I have 2 pages, I submit a value in a textbox, press
    submit button to open the other page that searches an Access record and
    display its contents. I want to replace the button with a hyperlink, I did ,
    but how to pass the 2 variables , or one variable
    Please if anyone can help

    Thank you


    Mohammed AM Dwaikat Guest

  4. #3

    Default Re: passing 2 values from a page to another ASP page

    Example URL with a querystring:
    [url]http://www.mysite.com/mydir/mypg.asp?myvar1=hey&myvar2=ho[/url]

    Because a variable might contain some odd characters like spaces, it's
    usually a good idea to use Server.URLEncode when creating a querystring
    from a variable:
    <a href="http://www.mysite.com/mypage?id=<%=
    Server.URLEncode(objRS("MyIDFldFromDB")) %>">objRS("MyIDFldFromDB")</a>

    And in the page that is opened you can use Request.QueryString("id") to
    get the value of id.

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Consultant
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

  5. #4

    Default Re: passing 2 values from a page to another ASP page

    Thanx tooo much, it works fine

    "Mohammed AM Dwaikat" <dwaikat@maktoob.com> wrote in message
    news:%23JKIVA3JEHA.2624@TK2MSFTNGP09.phx.gbl...
    > Hi folks
    >
    > I am new to asp, but I have 2 pages, I submit a value in a textbox, press
    > submit button to open the other page that searches an Access record and
    > display its contents. I want to replace the button with a hyperlink, I did
    ,
    > but how to pass the 2 variables , or one variable
    > Please if anyone can help
    >
    > Thank you
    >
    >

    Mohammed AM Dwaikat Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139