"don't have permission to access" error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
marika121
Forum Newbie
Posts: 1
Joined: Fri Jun 16, 2006 4:43 am

"don't have permission to access" error

Post by marika121 »

Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi all, I the following code of file at http:// localhost/work/post.php  results in the next error message:

Forbidden
You don't have permission to access /work/< on this server.

Apache/2.0.58 (Win32) PHP/5.1.4 Server at localhost Port 80

Code: Select all

<html> 
 <body> 
 <? 
   if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
     echo '<h1>your name is <b>' . $_POST['name'] . '</b></h1>!'; 
   } 
 ?> 
 <form method="POST" action="<?=$_SERVER['PHP_SELF']?>"> 
   enter name: <input type="text" name="name"> 
   <br> 
   <input type="submit" name="okbutton" value="OK"> 
 </form> 
 </body> 
 </html>

Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

For the love of God, please read the rules!!!!!

Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Post Reply