Registration Form
Register so that you can take advantage of certain features like this, that, and the other thing.
'; // Add the CSS: print ''; // Check if the form has been submitted: if ($_SERVER['REQUEST_METHOD'] == 'POST') { $problem = FALSE; // No problems so far. // Check for each value... if (empty($_POST['first_name'])) { $problem = TRUE; print 'Please enter your first name!
'; } if (empty($_POST['last_name'])) { $problem = TRUE; print 'Please enter your last name!
'; } if (empty($_POST['email'])) { $problem = TRUE; print 'Please enter your email address!
'; } if (empty($_POST['password1'])) { $problem = TRUE; print 'Please enter a password!
'; } if ($_POST['password1'] != $_POST['password2']) { $problem = TRUE; print 'Your password did not match your confirmed password!
'; } if (!$problem) { // If there weren't any problems... // Print a message: print 'You are now registered!
Please try again!
'; } } // End of handle form IF. // Create the form: ?>