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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Dec 2002
    Location
    the windy city
    Posts
    140
    Thanks
    0
    Thanked 0 Times in 0 Posts

    passing variable to another page without a form

    is it possible to do? - pass variable from one page to another without using a form?and if yes, then how?
    thanks.
    Last edited by DoubleV; 09-19-2003 at 05:26 PM.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sessions. sessions are just like a server side version of cookies (kindof) wich lets you strore variables in an array ($_SESSION[]) and then recall. be carefull with security issues regardng sessions though.

    http://www.hotscripts.com/PHP/Tips_a...ons/index.html

    http://fr2.php.net/manual/en/ref.session.php
    photoshop too expensive? use the GIMP! www.gimp.org

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Or you can simply append the value in the URL

    www.yaks.com/page.php?hurricane=isabel

    To retrieve that variable you use $_GET

    $myvariable = $_GET['hurricane'];
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

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