Reply to Pass value to header?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация