An HTML Form with a 'select' Element
//Reading Input from the Form
Reading Input from the Form
print "Welcome " . $_POST ['user'] . "
";
print "Your address is:
" . $_POST ['address'] . "
\n";
if (is_array ( $_POST ['products'] )) {
print "Your product choices are:
";
print "";
foreach ( $_POST ['products'] as $value ) {
print "- $value
\n";
}
print "
";
}
?>