Home >> PHP - MySQL Programming with PHP 2.1 [Page 6] Article by: Shelton Manage Tuesday, 26th May, 2009
To use conditional
Open handle_form.php and test these conditions
if ($gender == 'M') {
echo '
Good day, Sir!
';
} elseif ($gender == 'F') {
echo '
Good day, Madam!
';
} else {
echo '
You foget to enter your gender!
';
}
Ex: handle_form_if.phps | handle_form_if.php
Page: First - 1 2 3 4 5 6 7 8 9 10 - Last
|