Pear Auth problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I am trying to use pear Auth packet but am doing something wrong.
I am currently looking at the simple example in the documentation, but
something is wrong in my source code, because if I write a username
and a password in the fields and hit the submit button, I receive a
blank pages without any informatio at all..

Here is my source code:


function loginFunction($username = null, $status = null, &$auth = null){

<form action="index.php" method="post">
    <label for="username">Username:</label><br>
	<input id="username" name="username" type="text">
    <label for="password">Password:</label><br>
	<input id="password" name="password" type="password">
    <input id="submit" name="submit" type="submit" value="Login">


	$options = array(
	'dsn' => "mysql://username:password@localhost/database",
	$a = new Auth("DB", $options, "loginFunction");

The example is located at:

Thanks for your time.

PHP General Mailing List (
To unsubscribe, visit:

[PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [Find Someone]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux