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.

Rashini




Please 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to