note 47766 deleted from faq by tularis

From: Date: Mon, 29 Nov 2004 08:28:28 +0000
Subject: note 47766 deleted from faq by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-81139@lists.php.net to get a copy of this message
Note Submitter: manish_it56 at yahoo dot com ---- Hello Sir, I m creating site using php and mysql. Plz help me to set session variable and display on another page... I tried this code... session_start(); // This connects to the existing session session_register ("name"); // Create a session variable called name session_register ("job"); // Create a session variable called job $HTTP_SESSION_VARS ["name"] = $name; // Set name = form variable $name $HTTP_SESSION_VARS ["job"] = $job; // Set job = form variable $job but it is giving error like this Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\Inetpub\wwwroot\php\insert.php:4) in c:\Inetpub\wwwroot\php\insert.php on line 11 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\Inetpub\wwwroot\php\insert.php:4) in c:\Inetpub\wwwroot\php\insert.php on line 11 Notice: Undefined variable: name in c:\Inetpub\wwwroot\php\insert.php on line 17 Notice: Undefined variable: job in c:\Inetpub\wwwroot\php\insert.php on line 19 Notice: A session had already been started - ignoring session_start() in c:\Inetpub\wwwroot\php\insert.php on line 23 plz give me answer as soon as possible ---- Reason: spam

« previous php.notes (#81139) next »