DEV Community

Cover image for PHP form 20: input text textarea
Falah Al Fitri
Falah Al Fitri

Posted on • Edited on

3 2

PHP form 20: input text textarea


Happy Coding



Previous

In index.php

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

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

        Lastname: <input type="text" name="lastname" />
        <br />
Enter fullscreen mode Exit fullscreen mode

Add input type description:

        Description: <textarea name="description" rows="10" cols="50"></textarea>
Enter fullscreen mode Exit fullscreen mode

        <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 :)

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay