------form.php------
<html>
<form name="myInputForm" action="php_action.php" method="post">
User Name: <input type="text" name="username" /><br />
Password: <input type="password" name="pwd" /><br />
<input type="submit" value="Submit" /><br />
</form>
</html>
----php_action.php----
<?php
//Get the values of the variables from the HTML form.
$username=$_POST["username"];
$password=$_POST["password"];
//call the function "ping_function"
ping_function($username, $password);
//The following defines the function "ping-function".
function ping_function ($user,$pwd)
{
print "[User Name]:    ".$user."<br/>";
print "[Password]:    ".$pwd."<br/>";
}
?>
---
In the above program, there is one error within php_action.php. Provide a correct statement (complete) so that you can correct the syntax error.
|