Forum Moderators: coopster
<?php
print "Your name is $Name";
print "<br />";
print "You are $Age years old";
print "<br />";
$old = 25 + $Age;
print "In 25 years you will be " . $old . " years old";
?>
<html>
<head><title>Test Page</title></head>
<body>
<h2>Data Collection</h2><p>
<form method="post">
<table>
<tr><td>Name:</td><td><input type="text" name="Name"></td></tr>
<tr><td>Age:</td><td><input type="text" name="Age"></td></tr>
<tr><td colspan="2" align="center"><input type="submit"></td></tr>
</table>
</form>
</body>
</html>
But does nothing in php5, I have not used php5 before and have no idea what is wrong with the above.
It started out as a quick php post to self test, now cant work out whats wrong please help, thanks
you can look at this
Using Register Globals [php.net]