php add_action 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: wp add_action
add_action('wp_footer', function($arguments) use ($myvar) {
echo $myvar;
}, $priority_integer, $accepted_arguments_integer);