cooldude832 Posted July 20, 2007 Share Posted July 20, 2007 Are the $_SERVER sg variables in php 4 because i'm on a new server try to do <form name="register" action="<?php echo $_SERVER['self'];?>" method="post"> and in the source it comes back as <form name="register" action="" method="post"> Any Ides? Quote Link to comment Share on other sites More sharing options...
benjaminbeazy Posted July 20, 2007 Share Posted July 20, 2007 PHP_SELF Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 20, 2007 Author Share Posted July 20, 2007 what as i $_PHP['self'] ? Quote Link to comment Share on other sites More sharing options...
benjaminbeazy Posted July 20, 2007 Share Posted July 20, 2007 $_SERVER['self'] doesnt exist use $_SERVER['PHP_SELF'], such superglobals were introduced in 4.1.0 Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 20, 2007 Author Share Posted July 20, 2007 thanks, need to get my hosting company to upgrade my php really soon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.