Posted by FH on 10/10/04 11:45
Hello,
all transmitted Data is stored in an Array namen $_POST, if you choosed
the post-method. So your PHP-Code in page2.php has to look like this:
-----------
<?PHP
error_reporting(E_ALL);
echo "Hello: ";
echo $_POST['username'];
?>
<BR><BR>
<input type="submit" value="Want to go back?">
<input type="hidden" name="username" value="<?PHP echo
$_POST['username']; ?>">
</form>
-----------
If you choose the GET-method for the form in Page1.php, the transmitted
data is in the $_GET-Array.
Greetings
FH
[Back to original message]
|