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 7 of 7
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    Can you pass hidden data between pages without using a form?

    Hi,

    I am trying to pass hiden data between a series of pages and want to do it so that the data is njot in the url.

    I would rather not use a form with hidden data and wondered, is it possible to do something like this (but which works)?

    <a href=""><input type="hidden" name="name" value="">hyperlink</a>


    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    New Coder
    Join Date
    Jul 2004
    Location
    france
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    do you think it works with :

    <a href="!!!"><input type="submit" id="go" value="go" />hyperlink</a>

    ? :-)

  • #3
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    er, doubt it: that would give me a button wouldn't it? I just want to have a straightforward hyperlink but which passes data otherwiase than through the url.
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #4
    Regular Coder Coastal Web's Avatar
    Join Date
    Oct 2004
    Posts
    225
    Thanks
    12
    Thanked 3 Times in 3 Posts
    yay l dont think so ... perhaps using sessions with PHP, this wouldn't "hide it" per se, but would definetly encode it and 'hide' the contents...

    so your variables would be stored in the session id, and would end up looking like:

    <a href="page2.html?sid=abecffaa52f529a2b83b6612a7964b02">go to page 2</a>

    of course PHP would append the "?sid=xxxx" to the end of all your links, which would contain all of the information you'd like to carry on from page to page.

    more info on sessions:
    http://us3.php.net/session

    HTHs
    Samantha Gram

  • #5
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Thanks Samantha,

    I'll check it out.

    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #6
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,942
    Thanks
    2
    Thanked 169 Times in 164 Posts
    Since most of your other questions (and scripts) involve Perl, you shoulld look at the cpan modules.

    use CGI::Session;
    http://search.cpan.org/~sherzodr/CGI....95/Session.pm

    use Apache::Session::MySQL;
    http://search.cpan.org/~jbaker/Apach...1.6/Session.pm

    There are others, doing a search for session found these:
    http://search.cpan.org/search?query=session&mode=all

  • #7
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    window.name


  •  

    Posting Permissions

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