Requesting variables from one page to another

Results 1 to 4 of 4

Thread: Requesting variables from one page to another

  1. #1
    Hilmi Sunay Guest

    Default Requesting variables from one page to another

    I want to learn how can I request variables from for exam. page1.asp to page2.asp. I want to do this, but it does not work!<BR>page1.asp ==&#062; (in the form object-- form method="POST" action="page2.asp")<BR> DIM var1<BR> var=request.form("select") (from previous page)<BR> <BR>page2.asp ==&#062; request.form(var1)<BR>and I want to use this in a query as var1<BR><BR>Thanks if you send an answer... <BR>

  2. #2
    capnfunky Guest

    Default RE: Requesting variables from one page to another

    I think you may want to use a hidden here.<BR><BR>? maybe ?<BR>&#060;form method=post action=page2.asp&#062;<BR>&#060;input type=hidden name=somename value=&#060;%=var1%&#062;&#062;<BR>&#060;/form&#062;<BR><BR>on page2==&#062;<BR><BR>myqueryvar = request("somename")<BR><BR>will that help you?

  3. #3
    Hilmi Sunay Guest

    Default RE: Requesting variables from one page to another

    I have used this. But there is a problem.Hidden&#039s value is more than one words, so containing spaces in my project. Because of this, it only requests first word of the value. Then it works wrong...Can I explain??<BR>Is there any solution to this??<BR>Thanks

  4. #4
    Join Date
    Dec 1969
    Posts
    572

    Default RE: Requesting variables from one page to another

    Use Urlencode(string). It should 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
  •