Posted by Garry Jones on 04/28/06 17:15
When processing a form I am reading in a value to a mysql database. I then
redirect the user to a "thank you" page with Header. What I would like is to
remind the user the value he/she keyed in. Can I pass the variable in the
Header command?
What I want to do in the following is echo the value of $inx01 in
thankyou.php?
<?php
mysql_connect(" Codes Removed ") or die(mysql_error());
mysql_select_db(" Database Name removed ") or die(mysql_error());
$inx01=$_POST['fardvagonf'];
mysql_query("INSERT INTO table1 VALUES ('$inx01')");
echo mysql_error();
mysql_close();
Header("Location: http://www.mydomain.com/thankyou.php");
exit;
?>
Garry Jones
Sweden
[Back to original message]
|