Re: Passing variables between pages
| From: | John Nichel | Date: | Tue, 14 Oct 2003 04:01:45 +0000 |
| Subject: | Re: Passing variables between pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166044@lists.php.net to get a copy of this message | ||
Rashini Jayasinghe wrote:
Hi, I want to pass a variable between three pages. I tried to get a username from the first page through a form. Use that username in a select statement in the second page to query a table.Everything is fine up to that point. now I want to pass the same username to the third page where I have to use it to select a table name by that username and it doesn't work. I tried $_POST['username'] and the value is not passed to the third page. Is there a way of doing this? Please help. Thank You. RashiniPlease wrap your emails to the list. Are you using a form to go from page two to page three? If so... <input type='hidden' name='username' value='<?php echo ( $_POST['username'] ); ?>'> If not, save it in a session variable (I would actually use this method even if I did have a form on the second page). -- By-Tor.com It's all about the Rush http://www.by-tor.com