Results 1 to 4 of 4

Thread: PHP scrip help

  1. #1

    PHP scrip help

    I know this has nothing to do with web hosting. well it kinda does because its part of my hosting page but neway. How would you pass form data on to more than one page? Thanks!

  2. #2
    Join Date
    Jun 2000
    Location
    Washington, USA
    Posts
    5,991
    PHP sessions work well.

  3. #3
    Join Date
    May 2002
    Location
    UK
    Posts
    2,994
    If the form data is not secret information (i.e. no usernames or passwords) you could also make the form a GET and place it in the query string for each subsequent link. Not the best way but a way

    PHP Code:
    <?php
    echo ("link.php?" $_SERVER['QUERY_STRING']);
    ?>

  4. #4
    Join Date
    May 2002
    Location
    UK
    Posts
    2,994
    Oops, I should add there is a problem with using that method, if you need to add to the query string and change the variable from page to page e.g. an ID number you need to write a regular expression to remove the previous one.

Posting Permissions

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