Reply to Re: Passing variables

Your name:

Reply:


Posted by Locu on 04/12/06 19:33

Your problem is that it is process_this.php that has the form post
information, when you do the header request to forward to index5c.html
it's just like loading a fresh page with no post data.

To get around that, i'd use a session.
For example:
on both process_this.php and index5c.html put at the very top:
session_start();

Now in process_this.php put:
$_SESSION['realname'] = $_POST['realname'];

Then in index5c.html you can directly reference the session variable or
assign it and use it in your html:
<html>
Hello <?php echo $_SESSION['realname'] ?>.
</html>

[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

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