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> <!-- ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |