<!DOCTYPE html>
<html>
<head>
<title>Application Form</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>Application Form</h1>
<form action="submit.php" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" required>
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST["name"];
$email = $_POST["email"];
$phone = $_POST["phone"];
$message = $_POST["message"];
// You can perform additional processing/validation with the submitted data here
// Store the data in a database or send it via email, etc.
// For demonstration purposes, we'll simply print the submitted data
echo "<h2>Thank you for your application!</h2>";
echo "<p>Name: $name</p>";
echo "<p>Email: $email</p>";
echo "<p>Phone: $phone</p>";
echo "<p>Message: $message</p>";
}
?>
.container {
max-width: 500px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
background-color: #f9f9f9;
}
.container h1 {
text-align: center;
}
.container label,
.container input,
.container textarea {
display: block;
margin-bottom: 10px;
}
.container input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px;
cursor: pointer;
}
.container input[type="submit"]:hover {
background-color: #45a049;
}
<!DOCTYPE html>
<html>
<head>
<title>Application Form</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>Application Form</h1>
<form action="submit.php" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" required>
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST["name"];
$email = $_POST["email"];
$phone = $_POST["phone"];
$message = $_POST["message"];
// You can perform additional processing/validation with the submitted data here
// Store the data in a database or send it via email, etc.
// For demonstration purposes, we'll simply print the submitted data
echo "<h2>Thank you for your application!</h2>";
echo "<p>Name: $name</p>";
echo "<p>Email: $email</p>";
echo "<p>Phone: $phone</p>";
echo "<p>Message: $message</p>";
}
?>
.container {
max-width: 500px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
background-color: #f9f9f9;
}
.container h1 {
text-align: center;
}
.container label,
.container input,
.container textarea {
display: block;
margin-bottom: 10px;
}
.container input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px;
cursor: pointer;
}
.container input[type="submit"]:hover {
background-color: #45a049;
}