I have recently installed Apache, PHP and MySQL on XP Home and was trying some stuff out. I created these two pages (index.html and colour.php) but when they are run (using htp://localhost/index.html), I get:
Notice: Undefined variable: colour in C:\web\colour.php on line 4
index.html
<HTML>
<BODY>
<H1>Hello, World!</H1>
<FORM method="POST" action="colour.php">
<INPUT type="text" name="colour">
<INPUT type="submit" value="Change" name="change">
</FORM>
</BODY>
</HTML>
colour.php
<HTML>
<BODY>
<? echo($colour); ?>
</BODY>
</HTML>
Can anyone help?
Domhal