Page 1 of 1

"don't have permission to access" error

Posted: Fri Jun 16, 2006 5:12 am
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]

Posted: Fri Jun 16, 2006 5:50 am
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]