generated from Templates_CodeFirst/templateHtmlCss
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
743 B
32 lines
743 B
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Traitement du formulaire</title>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body>
|
|
<h1>Résultats du formulaire</h1>
|
|
<php
|
|
if (empty($_GET['name'])) {
|
|
echo 'You did not fill out your name!';
|
|
} else {
|
|
echo 'Hi ' . $_GET['name'] . '!';
|
|
}
|
|
|
|
if (empty($_GET['email']) Or empty($_GET['comments'])) {
|
|
echo 'You did not fill out your name!';
|
|
}
|
|
|
|
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
|
echo("$email is a valid email address");
|
|
} else {
|
|
echo("$email is not a valid email address");
|
|
}
|
|
|
|
echo htmlspecialchars($_POST['email']);
|
|
echo htmlspecialchars($_POST['comments']);
|
|
?>
|
|
|
|
|
|
</body>
|
|
</html> |