You are here: Re: Please Help: Problems Passing Hidden Fields in PHP « All PHP « IT news, forums, messages
Re: Please Help: Problems Passing Hidden Fields in PHP

Posted by FH on 09/28/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

 

Navigation:

[Reply to this 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

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