Posted by echo---pscbro on 01/27/07 11:16
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
[Back to original message]
|