call function in form action php code example
Example 1: 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']); ?>
Example 2: ajax php call action form
// You can access the values posted by jQuery.ajax
// through the global variable $_POST, like this:
$bar = isset($_POST['bar']) ? $_POST['bar'] : null;