TOP TECH
  Learn How to.....
Welcome IT Related Articles Member Area  |  Sign In  |  Sign Up
.: Home :.
General
HTML
CSS
PHP
PHP-MySQL
FrontPage
Photoshop
CorelDRAW
PageMaker
MS Office
VisualBasic
All
.

.: Home :.

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

 



Comments


© 2009 Top Sri Lanka Top Tech.
Articles Manager β - Script by: DynamicCodes.com