register_globals=Off Question

From: Date: Sun, 28 Apr 2002 22:58:14 +0000
Subject: register_globals=Off Question
Groups: php.general 
Request: Send a blank email to php-general+get-95043@lists.php.net to get a copy of this message
How do I use $PHP_SELF with register_globals off? I looked up the documentation on php.net but haven't gotten this line of code to work: <form name="form5" method="post" action='<?php echo("$_SERVER[PHP_SELF]; ?>'> I get this error instead: [28-Apr-2002 16:33:31] PHP Parse error: parse error, expecting `T_STRING' or T_VARIABLE' or T_NUM_STRING' in - on line 140 what am I doing wrong? thanks, Kirk

« previous php.general (#95043) next »