Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Pass Variables

  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    179
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Cool Pass Variables

    for example on the first page
    i got
    Code:
    dim a
    a = abcd1234
    
    <form action=page2.asp method=post ENCTYPE="multipart/form-data" ...>
    ...
    </form>
    on the page2.asp
    how can i catch the value of a
    -i do not want to use get\response.redirect\session\Server.Transfer\hidden value in the form
    request.querystring
    request.form
    request.upload
    not working
    it's a simple question for people that know well ASP
    By the time u recognize this moment, This moment will be gone.

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    i do not want to use get\response.redirect\session\Server.Transfer\hidden value in the form
    The web is stateless. Something to indicate a key/value pair will always be passed somewhere in the request, whether it's the key or both the key and the value.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Cookies?

  • #4
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Nikki is right, as the web cannot keep this information for you without you telling the server to keep it.

    If you want to do this without passing variables, then you need to consider changing how you are authenticating your users.
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #5
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Iframes or cookies would be a hack, and not a Good Thing.

    It is always in the best interests of security to keep server-side things on the server. Things that the client never needs but that you may want to re-use are exactly what the session is for. As long as you don't kill the server with a ton of stuff in sessions, they perform well and do what they were meant to do.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/


  •  

    Posting Permissions

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