form action= action_page.php what do you mean code example

Example 1: action_page.php

<form method="GET">
  <input type="text" name="someName">
  //The Name Attribute will be put into the _GET inside of php 
  <input type="submit" value="Submit">
 </form>
  
<?php
$var = $_GET("TestUser1");
echo ($var);
?>

Example 2: form action php

// Page containing a form:
<form action="myaction.php" method="post">
 <p>Yopur name : <input type="text" name="name" /></p>
</form>

// myaction.php
Hello <?php echo htmlspecialchars($_POST['name']); ?>

Tags:

Html Example