Dealing with html forms [closed]

Use the following code:

<form action="action_page.php" method="post">
First name:<br>
<input type="text" name="firstname" value="">
<br>
Last name:<br>
<input type="text" name="lastname" value="">
<br>
<input type="submit" value="Submit">
</form>

and in file “action_page.php” Use the following code:

$firstname = $_POST["firstname"];
$lastname = $_POST["lastname"];

You can read the information with the following code:

<pre>
    <?php 
    print_r($_POST);
؟>
</pre>

or

var_dump($_POST);