Results 1 to 2 of 2

Thread: URLENCODE() Help please

  1. #1
    Join Date
    Dec 2004
    Posts
    7

    URLENCODE() Help please

    Hi guys

    how do u exactly use urlencode() to pass one variable from a php file to another php file? I am having trouble with this please help

    Thank you

    1000years0fpain

  2. #2
    To pass a variable you can use $_GET which will get the variable passed in the url, like this:

    site.com/index.php?variable_here=whats+up

    so $_GET['variable_here'] = whats up

    or, you can store the variable in a session. Just do something like:
    Code:
    <?
    session_start( );
    $_SESSION['test'] = "whats up";
    session_write_close();
    ?>

Similar Threads

  1. urlencode help (plz)
    By RDWest2005 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 24 Oct 2005, 09:25 PM

Posting Permissions

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