Bluehost.com Web Hosting $6.95

Newbie; Access forbidden! error 403 ???

This is a discussion on Newbie; Access forbidden! error 403 ??? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; The script I am trying to run: <html> <head> </head> <body> <!-- ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-27-2007
echo---pscbro
 
Posts: n/a
Default Newbie; Access forbidden! error 403 ???

The script I am trying to run:

<html>
<head>
</head>

<body>

<!-- Html comments -->

<?php

// Php comments

if (!$_POST['submit'])
{
?>

<p>Select one or more labels: </p> <br>

<form action = <?=$_SERVER['PHP_SELF']?>" method="POST">

<select name="options[]" multiple>

<option value="family">Family</option>
<option value="appreciation">Appreciation</option>
<option value="health">Health</option>
<option value="nature">Nature</option>

</select>

<input type="submit" name="submit" value="selection">

</form>

<?php
}

else
{
if (is_array($_POST['options']))
{
echo 'You have selected: <br />';
foreach ($_POST['options'] as $i)
{
echo "$i <br />";
}
}
else
{
echo 'No labels selected';
}
}

?>

</body>

</html>

I am running Xamp, I have the same password set for Php and Apache.
Although in the security tab, I am being told Php is not secured.

Thanks if you can help.

Pascal

Reply With Quote
  #2 (permalink)  
Old 01-27-2007
Carl Pearson
 
Posts: n/a
Default Re: Newbie; Access forbidden! error 403 ???

echo---pscbro wrote:
> <form action = <?=$_SERVER['PHP_SELF']?>" method="POST">


Should be
<form action="<?php echo($_SERVER['PHP_SELF']); ?>" method="POST">
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0