Code for simple form in HTML with PHP


if (isset($_POST["btn"])) {
    echo "$nam <br>";
    echo "$eml <br>";
    echo "$pass <br>";



<html lang="en">
<meta charset="UTF-8">
        <form action="" method="post">
            <input type="text" name="name" placeholder="Enter your name">
            <input type="email" name="email" placeholder="Enter your email">
            <input type="password" name="password" placeholder="Password">
            <input type="submit" name="btn" value="Button">

Share it in your network:

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.



You have successfully subscribed to my email list. Now you will be recieving latest wordpress tips and tricks directly in your mail box.

Don’t worry! I won’t spam you