DEV Community

loading...
Cover image for PHP form 20: input text textarea

PHP form 20: input text textarea

antelove19 profile image Falah Al Fitri Updated on ・1 min read

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 />

Add input type description:

        Description: <textarea name="description" rows="10" cols="50"></textarea>

        <br />

        <hr />

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

    </form>

In process.php

    echo "<pre>";

    var_dump($_POST);

Source Code Next


Thank for reading :)

Discussion (0)

Forem Open with the Forem app