PHP form 10: input text

antelove19

Falah Al Fitri

Posted on December 14, 2019

PHP form 10: input text

Happy Coding



In index.php

    <form method="post" action="process.php" >

        Firstname: <input type="text" name="firstname" />
        <br />

        Lastname: <input type="text" name="lastname" />
        <br />

        <hr />

        <input type="submit" name="submit" value="Submit" />

    </form>
Enter fullscreen mode Exit fullscreen mode

In process.php

    echo "<pre>";

    var_dump($_POST);
Enter fullscreen mode Exit fullscreen mode

Source Code Next


Thank for reading :)

💖 💪 🙅 🚩
antelove19
Falah Al Fitri

Posted on December 14, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related