Web Hosting Talk







View Full Version : PHP scrip help


dbbrock1
08-11-2002, 05:27 PM
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!

JTY
08-11-2002, 06:12 PM
PHP sessions work well.

Rich2k
08-12-2002, 05:29 AM
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
echo ("link.php?" . $_SERVER['QUERY_STRING']);
?>

Rich2k
08-12-2002, 05:35 AM
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.