tag)
$_POST['Comments'] = nl2br($_POST['Comments']);
//Check whether a $_GET['Languages'] is set
if ( isset($_POST['Colors']) ) {
$_POST['Colors'] = implode(', ', $_POST['Colors']); //Converts an array into a single string
}
//Let's now print out the received values in the browser
echo "Your name: {$_POST['Name']}
";
echo "Your password: {$_POST['Password']}
";
echo "Your favourite season: {$_POST['Seasons']}
";
echo "Your comments:
{$_POST['Comments']}
";
echo "You are from: {$_POST['Country']}
";
echo "Colors you chose: {$_POST['Colors']}
";
} else {
echo "You can't see this page without submitting the form.";
}
?>