Re: Sending a string with $_POST/$_GET

From: Date: Wed, 18 May 2005 15:53:58 +0000
Subject: Re: Sending a string with $_POST/$_GET
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-215491@lists.php.net to get a copy of this message
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

« previous php.general (#215491) next »