I want to work with html form but i cant understand the Action method and when we need to use it.For example found this code on w3schools:
<form action="action_page.php">
First name:<br>
<input type="text" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form>
how can we use \'lastname\' in other file?