I have mysql, php, and IIS set up on a laptop to have a mirror of my site for testing purposes. I am trying to build an extensive database and am having problems with it running on my winXP machine.
I get undefined variable from these two sets of code.
multipleforms.php3
<html>
<head>
<title>Test</title>
</head>
<body>
<form action="select.php3">
<p>
<select multiple name="services[]">
<option value="tune-up" selected>tune-up</option>
<option value="tire rotation">tire rotation</option>
</select>
<input type=submit value=submit>
</form>
</body>
</html>
select.php3
<html>
<head>
<title>Test</title>
</head>
<body>
<oL>
<?php
for ($x=0;$x<count($services);$x++)
print "<li>$services[$x]</li>";
?>
</ol>
</body>
</html>
I know this works because I uploaded it to my server and it worked perfectly and I copied it directly out of a book.
I might have just not set up IIS or PHP correctly but everything else works so I dont understand why this wont.
Thanks in advance for help,
Tyrnt