RE: [PHP] passing values from one script to another script

2003-03-16 Thread John W. Holmes
> I want to pass a value, which came from a HTML form, to another PHP
> script. How can i do this?
> 
> e.g.: $login - the value of this varriable is came from LOGIN.HTML to
> LOGIN.PHP. How can i pass the value of $login from LOGIN.PHP to
> PROCESS.PHP?

The easiest way is with a session. Remember, each request is unique, so
if you want to carry something over, you have to include it in the next
request. This means adding it to the URL ($_GET) or adding it to a form
($_POST), adding it to a cookie ($_COOKIE), or putting it in the session
($_SESSION).

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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



Re: [PHP] passing values from one script to another script

2003-03-16 Thread Marek Kilimajer
Either use session, cookies, or pass the value in URLs. Because it is 
login information, I would choose session or cookie

Chinmoy Barua wrote:

Hello everybody,

I want to pass a value, which came from a HTML form, to another PHP script. How can i do this?

e.g.: $login - the value of this varriable is came from LOGIN.HTML to LOGIN.PHP. How can i pass the value of $login from LOGIN.PHP to PROCESS.PHP?

Thank you,

Chinmoy



-
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
 



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


[PHP] passing values from one script to another script

2003-03-16 Thread Chinmoy Barua

Hello everybody,

I want to pass a value, which came from a HTML form, to another PHP script. How can i 
do this?

e.g.: $login - the value of this varriable is came from LOGIN.HTML to LOGIN.PHP. How 
can i pass the value of $login from LOGIN.PHP to PROCESS.PHP?

Thank you,

Chinmoy



-
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online