James Hatridge wrote: > Hi John et al.. > On Friday 27 April 2007 18:47, John D Lamb wrote: >> On Fri, 2007-04-27 at 17:44 +0200, James Hatridge wrote: >>> Hi all, >>> >>> After turning off PHP global variables this line will no longer work. >>> >>> <form method="post" action="<?php echo $PHP_SELF?>"> >>> >>> When I use the form the source looks like this: >>> >>> <form method="post" action=""> >> <form method="post" action="<?php echo $SEVER['PHP_SELF']; ?>"> > > I tried this (with $SERVER, not SEVER) and did not work. It had the same > error. Any other ideas?
It's $_SERVER. http://www.php.net/manual/en/reserved.variables.php -- Jonathan Arnold (mailto:[EMAIL PROTECTED]) Daemon Dancing in the Dark, an Open OS weblog: http://freebsd.amazingdev.com/blog/ UNIX is user-friendly. It's just a bit picky about who its friends are. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
