<?php
$to = 'vladlex007@gmail.com';
$subject = 'this came from your mother';
$name = $_POST['name'];
$email = $_POST['email'];
$topic= $_POST['topic'];
$message = $_POST['message'];
$body = <<<EMAIL
Hi! My name is $name and my topic is: $topic
$message
Frome $name
Oh beach my email: $email
EMAIL;
$header = "From: $email";
if($_POST){
if($name == '' || $email == '' || $message == ''){
$feedback = 'fill out fealds';
}else{
mail($to, $subject, $body, $header);
$feedback = 'thancks';
}
}
?>
<!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback"><?php echo $feedback; ?>
<form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Warning: Undefined array key "name" in /in/K0M95 on line 6
Warning: Undefined array key "email" in /in/K0M95 on line 7
Warning: Undefined array key "topic" in /in/K0M95 on line 8
Warning: Undefined array key "message" in /in/K0M95 on line 9
<!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback">
Warning: Undefined variable $feedback in /in/K0M95 on line 47
<form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
- Notice: Undefined index: name in /in/K0M95 on line 6
Notice: Undefined index: email in /in/K0M95 on line 7
Notice: Undefined index: topic in /in/K0M95 on line 8
Notice: Undefined index: message in /in/K0M95 on line 9
<!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback">
Notice: Undefined variable: feedback in /in/K0M95 on line 47
<form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
- Output for 7.3.32 - 7.3.33
- <!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback"><form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
- Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.1, 5.1.3 - 5.1.6, 5.2.0 - 5.2.17
- Notice: Undefined index: name in /in/K0M95 on line 6
Notice: Undefined index: email in /in/K0M95 on line 7
Notice: Undefined index: topic in /in/K0M95 on line 8
Notice: Undefined index: message in /in/K0M95 on line 9
<!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback">
Notice: Undefined variable: feedback in /in/K0M95 on line 47
<form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
- Output for 5.1.2
- Notice: Undefined index: name in /in/K0M95 on line 6
Notice: Undefined index: email in /in/K0M95 on line 7
Notice: Undefined index: topic in /in/K0M95 on line 8
Notice: Undefined index: message in /in/K0M95 on line 9
<!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback">
Notice: Undefined variable: feedback in /in/K0M95 on line 48
<form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.1, 4.4.3 - 4.4.9, 5.0.0 - 5.0.3
- Notice: Undefined index: name in /in/K0M95 on line 6
Notice: Undefined index: email in /in/K0M95 on line 7
Notice: Undefined index: topic in /in/K0M95 on line 8
Notice: Undefined index: message in /in/K0M95 on line 9
<!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback">
Notice: Undefined variable: feedback in /in/K0M95 on line 47
<form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
- Output for 4.4.2
- Notice: Undefined index: name in /in/K0M95 on line 6
Notice: Undefined index: email in /in/K0M95 on line 7
Notice: Undefined index: topic in /in/K0M95 on line 8
Notice: Undefined index: message in /in/K0M95 on line 9
<!doctype html>
<html lang="ru">
<head>
<meta charset='utf-8' />
<style type='text/css'>
form { width: 400px; }
form ul { list-style-type: none; }
form ul li { margin: 15px 0; }
form label { bisplay: block; font-size: 11pt; }
form input, testarea, select { font-size: 11pt; paddong: 5px; border: #ccc 3px solid; width: 100%; }
</style>
</head>
<p id="feedback">
Notice: Undefined variable: feedback in /in/K0M95 on line 48
<form action="?" method="post">
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="topic">Topic:</label>
<select id="topic" name="topic">
<option value="Ponies">Ponies</option>
<option value="Mexicans">Mexicans</option>
<option value="Weiner">Weiner</option>
</select>
</li>
<li>
<label for="message">message:</label>
<textarea id="message" name="message" cols="42" rows="9"></textarea>
</li>
<li><input type="submit" value="Submit"><li>
</ul>
</form>
</html>
preferences:
319.46 ms | 404 KiB | 460 Q