1K Views

HTML-Only Simple Form

Here's a simple HTML-only form (no PHP) that collects user data:

 Basic HTML Form

<!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?

Upgrade to Pro
Choose the Plan That's Right for You
Read More
Flowisetech Hi , For easy access