ali_2kool2002 Posted February 20, 2007 Share Posted February 20, 2007 Hi what does this error mean when using the code if(isset($_POST['submit'])){ // Code to process your form below } else { // code to show your form below echo "<form name=\"myForm\" action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">"; } ?> <?php ERORR MESG>>> Forbidden You don't have permission to access /"".$_SERVER['PHP_SELF']."/" on this server. p.s. my server im using is localhost, thats where all my php files are saved?? does tht help Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 20, 2007 Share Posted February 20, 2007 Edit: woops. What was I thinking? Try this: echo '<form name="myForm" action="'.$_SERVER['PHP_SELF'].'" method="post">'; Quote Link to comment Share on other sites More sharing options...
ali_2kool2002 Posted February 20, 2007 Author Share Posted February 20, 2007 cheers but now its sayin page cannot be found ? Quote Link to comment Share on other sites More sharing options...
craygo Posted February 20, 2007 Share Posted February 20, 2007 well not sure why you getting that but try echo '<form name="myForm" action="" method="post">'; ray Quote Link to comment Share on other sites More sharing options...
ali_2kool2002 Posted February 20, 2007 Author Share Posted February 20, 2007 hmmm not really workin jus keeps goin 2 same page but not validating il try tomorrow agen 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.