tanvirtonu Posted October 17, 2007 Share Posted October 17, 2007 I just wan to write a simple programme which refresh the current page.But I get the following error message- "Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster. Error 403 localhost 10/17/07 19:38:49 Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3 " I wrote the code using DreamWeaver Web Editor.My code is as follows- php: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>REFRESHING Page</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="<?php echo $_SERVER[php_SELF] ?>" method="POST"> <p> <strong>Type ur guess here</strong> <input type="text" name="guess"> </p> <p> <input type="submit" name="Submit" value="Submit ur guess"> </p> </form> </body> </html> PLs tell me what to do. I hav already run several other pages well. Quote Link to comment https://forums.phpfreaks.com/topic/73685-access-forbidden-problem/ Share on other sites More sharing options...
mattal999 Posted October 17, 2007 Share Posted October 17, 2007 <form action="<?php echo $_SERVER[php_SELF] ?>" method="POST"> um incorrect syntax?... <form action="<?php echo $_SERVER[php_SELF]; ?>" method="POST"> u needed a semi-colon... try it Quote Link to comment https://forums.phpfreaks.com/topic/73685-access-forbidden-problem/#findComment-371755 Share on other sites More sharing options...
BlueSkyIS Posted October 17, 2007 Share Posted October 17, 2007 no, same result without the ; chances are the file has wrong permissions. try changing the file permissions to 755. Quote Link to comment https://forums.phpfreaks.com/topic/73685-access-forbidden-problem/#findComment-371771 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.