Re: Sending a string with $_POST/$_GET

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ross wrote:
I want to write a string to a variable and use $_POST or $_GET to retrieve it on another page.

I keep gettting an undefined index errror. Can someone show me how this is done?

Do I have to use session_start() ?

or just use cookies: setcookie('myvarname', 'some value');

and in the other page:
echo $_COOKIE['myvarname'];
will output 'some value'

regards

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux