Pass value to header?
- From: "Garry Jones" <garry.jones@xxxxxxxxx>
- Date: Fri, 28 Apr 2006 16:15:59 +0200
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
.
- Follow-Ups:
- Re: Pass value to header?
- From: Ken Robinson
- Re: Pass value to header?
- Prev by Date: Re: Warning: ereg(): REG_BADBR
- Next by Date: Re: Pass value to header?
- Previous by thread: PHP, thttpd, & SCRIPT_FILENAME
- Next by thread: Re: Pass value to header?
- Index(es):
Relevant Pages
|