Ok I hope someone can clear this up for me because my laptop is going
in the bin or across the room soon.
I have installed versions:
MySQL 4.0.15
Apache 2.0.47
PHP 4.3.3
I have put the php4ts.dll in c:\winnt\system32\
I have changed the php.ini in c:\winnt\
I have changed the httpd.conf in c:\Program FIles\Apache
Group\Apache2\conf\
I have done bloody everything...
Apache I know works I can get the page up when I go localhost on
browser.
MySQL works because I have tried examples.
PHP seems to work with most things, but not with IF () statements!
for example:
<?php
if ($submit == "Go") {
echo("you wrote ".$you_wrote);
echo("<br>You could have written");
exit;
}
?>
<form action="<?php echo($PHP_SELF) ?>" method="POST" >
<p>Input a word <input type="text" size="20" name="you_wrote">
<input type="submit" name="Submit" value="Go"></p>
</form>
If I save this as php file and go to browser and call it up, I get
notice come up
"Notice: Undefined variable: submit in C:\Program Files\Apache
Group\Apache2\htdocs\test0.php on line 2"
Line being if ($submit == "Go") {
Can someone please tell me what needs doing please....