Hmm, the code seems fine to me :s
It just doesn't workPHP Code:<?php
$name = $_POST ['name'];
$age = $_POST ['age'];
$location = $_POST ['location'];
if ($name == null){
echo "Enter a name!";
} else {
echo "Hmm, so your name is ".$name."";
if ($age == null){
echo "Enter a name!";
} else {
echo "you are ".$age." years old";
if ($location == null){
echo "Enter a location!";
} else {
echo " and you live in ".$location."... interesting!";
}
?>![]()


Reply With Quote



