Hi,
This is what im trying to accomplish: I want when the form is submitted , to print every even integer less than the users age but added to that I would like for for code to do this no matter what age is put into the form field..
Is this posssible?
Thx in advance.
Here are the pages..
1st page
<html>
<body>
<form action="welcome.php" method="POST">
Your name: <input type="text" name="name" /><br>
Your age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>
2nd Page..
<html>
<body>
<?php
if ($_POST['name']== "Chris")
{
echo "Welcome chris!";
}
else
{
echo " Welcome <br><br>";
echo " Sorry, but you are not Chris";
}
?>
You are <?php echo $_POST["age"]; ?> years old!
</body>
</html>