if ($_GET['submitted'] == "yes"){
if (trim ($_GET['yourname']) != ""){
echo "Your Name (with GET): " . $_GET['yourname'];
} else {
echo "You must submit a value.";
}
?>
Try Again }
if ($_POST['submitted'] == "yes"){
if (trim ($_POST['yourname']) != ""){
echo "Your Name (with POST): " . $_POST['yourname'];
} else {
echo "You must submit a value.";
}
?>
Try Again }
?>
if ($_GET['submitted'] != "yes" && $_POST['submitted'] != "yes"){
?>
}
?>