Calling a PHP login function
<p>Here is my HTML code:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Login&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;


&lt;FORM NAME ="form1" METHOD ="POST" ACTION ="controller.php"&gt;

&lt;input type = "text" name = "txtUsername" value = "testuser"&gt;&lt;br&gt;
&lt;input type = "text" name = "txtPassword" value = "password"&gt;&lt;br&gt;

&lt;Input type = 'Submit' Name ='Login' value="Login"&gt;

&lt;/FORM&gt;

&lt;/body&gt;
&lt;/html&gt;

&lt;?PHP

    include_once("controller/Controller.php");  

    function login($username,$password) {
            $controller = new Controller();  
            $controller-&gt;invoke("testUsername","testPassword");  
    }

?&gt;
</code></pre>

<p>Can I please have some help to call the PHP login function with the values from the two input boxes?</p>
