A Comprehensive Guide to PHP Attributes
PHP |
2025-02-19 12:52:49
Here's a simple HTML-only form (no PHP) that collects user data:
<!DOCTYPE html>
<html>
<head>
<title>HTML Form Example</title>
</head>
<body>
<h2>HTML Form</h2>
<form action="submit.php" method="post">
<label for="name">Name:</label><br>
<input type="text" name="name" id="name" required><br><br>
<label for="email">Email:</label><br>
<input type="email" name="email" id="email" required><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
This form sends data to a PHP file called submit.php
using the POST method.
Would you like me to create the matching submit.php
file to handle the form data?