Re: Session troubles

From: Date: Sat, 29 Dec 2001 21:46:01 +0000
Subject: Re: Session troubles
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79028@lists.php.net to get a copy of this message
Sean -- Give the attached scripts a shot, a post the results. Note: Xitami(server+WinMe) + IE5.5 or Mozilla 9.7 works fine but with Netscape-4.9 it returns var names? But when served from Unix/Linux and Apache all 3 work as expected !! Anywhy give them shot. -- David --- form.html --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>No title</title> <meta name="GENERATOR" content="amaya 5.2" /> </head> <body> <form method="post" action="form.php"> <p><input type="text" size="20" name="stuff" /></p> <p><input type="text" size="20" name="more_stuff" /></p> <p><input type="text" size="20" name="still_more_stuff" /></p> <p><input type="submit" value="Submit" /></p> <p><input type="reset" value="Reset" /></p> </form> </body> </html> --- form.php ---- <?php // sessions on 48 N. Random Rd. session_start(); session_register('Green'); session_register('Yellow'); session_register('Red'); $Green = $stuff; $Yellow = $more_stuff; $Red = $still_more_stuff; // basic echo of var from form echo "We've just echoed var from form\n"; echo "<p>$Green</p>"; echo "<h2>$Yellow</h2>"; echo "<h3>$Red</h3>"; echo "<p><a href=\"form02.php\">Verify that session_vars were passwd</a></p>"; // Get out of here ?> --- form02.php ------------- <?php session_start(); // sessions on 48 N. Random Rd. // basic echo of var from form echo "<html><head><title></title></head>"; echo "<body>"; echo "<h2>session_registers:"; echo "<p>Green:$Green</p>"; echo "<p>Yellow:$Yellow</p>"; echo "<p>Red:$Red</p>"; echo "</body></html>"; ?>

« previous php.general (#79028) next »