PHP Code


$pchoice = array (
'George Washington'=>array('Name'=>"George Washington",'Term'=>"1789-1797", 'Brief Description'=>
"Soldier, statesman, farmer, politician, and commander and chief of the Continental Army during the
Revolutionary War."),

'John Adams'=>array('Name'=>"John Adams",'Term'=>"1797-1801", 'Brief Description'=>'Farmer, lawyer,
political philosopher, diplomat, and politician. He was a leader for U.S. Independence.'),

'Thomas Jefferson'=>array('Name'=>"Thomas Jefferson",'Term'=>"1801-1809", 'Brief Description'=>
'Architect, scientist, diplomat, author, and politician. He authored the Declaration of Independence.'),

'James Madison'=>array('Name'=>"James Madison",'Term'=>"1809-1817", 'Brief Description'=>'One
of the framers of the Virginia Constitution, the U.S. Bill of Rights, the U.S. Constitution, and the
Federalists Essays.')

);
if (isset($pchoice[$pres])){
print '';
print "More information about $pres
";
print '";
print "";
print "
Name Term Brief Description';
print "
$pres {$pchoice[$pres]['Term']} {$pchoice[$pres]['Brief Description']}
";
} else {
print "You must select at least one box.";
}