just recently i made a WAMP (windows, apache, mysql, php) set-up, and everything went smoothly (following all instructions). i tried viewing:
Code: Select all
<?php
echo 'PHP is working.<br>';
echo phpinfo();
?>but when i tried (who_are_you.php):
Code: Select all
<html>
<head>
<title>Who Are You?</title>
</head>
<body>
<form action="you_are.php">
Please enter your name:<br> I am.
<?php
print('<input type="text" name="person" value="' . $person . '"size="15">');
?>
<input type="submit" value="Go!" size="15">
</form>
</body>
</html>Code: Select all
<html>
<head>
<title>You Are!</title>
</head>
<body>
<?php
print('Well, hello ' . $person . ', nice to meet you!');
print('<br>');
print('<a href="who_are_you.php?person=' . urlencode($person) . '">Back to Who Are You?</a>');
?>
</body>
</html>am i missing something? maybe it has something to do with security issues? service packs i have installed? i have already deleted my hosts file (which by the way blocked localhost), but have not gotten what i want. i hope somebody can help me, because i need to start learning PHP for my web dev class. (and my classmates don't even know a thing about it yet. and forget the teacher, he's a loser). i'm better off with you guys here.
FYI, i also have sygate personal firewall pro and norton antivirus. BUT, that doesn't affect anything, does it?