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 80Code: 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]