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 Link to comment https://forums.phpfreaks.com/topic/39348-stayin-on-same-page-sori-got-error/ 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">'; Link to comment https://forums.phpfreaks.com/topic/39348-stayin-on-same-page-sori-got-error/#findComment-189781 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 ? Link to comment https://forums.phpfreaks.com/topic/39348-stayin-on-same-page-sori-got-error/#findComment-189783 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 Link to comment https://forums.phpfreaks.com/topic/39348-stayin-on-same-page-sori-got-error/#findComment-189785 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 Link to comment https://forums.phpfreaks.com/topic/39348-stayin-on-same-page-sori-got-error/#findComment-189809 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.