I just installed apache and php on windows ME without any problems but... as I run a simple script:
<?php
if (!$POST['submit'])
{
?>
<form action="<?php echo $SERVER['PHP_SELF']; ?>" method="post">
<p align="left"> Genre:<br>
<input name="test" type="text">
</p>
<input name="submit" type="submit" class="whitebox" id="submit" value="Submit">
</form>
<?php
}
?>
<?php
if ($POST['test'])
{
echo $POST['test'];
}
?>
I get these errors:
Notice: Undefined index: submit in c:\apache\apache\htdocs\test.php on line 2
and...
Notice: Undefined index: genre in c:\apache\apache\htdocs\test.php on line 19
What is wrong with my php configutation?