Re: storing / processing login info (newbie stuff not in tutorials)

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

 



At 11:38 AM -0500 3/14/08, Philip Thompson wrote:
On Mar 14, 2008, at 10:15 AM, tedd wrote:
At 8:01 AM -0700 3/14/08, good_times wrote:
2. i see an example where a form in a login.html submits to "authcheck.php"
but authcheck.php just prints ('User not found in LDAP' or 'error occured'
or 'success'). how can authcheck.php redirect the user to... say.. BACK to
the login.html and tell it "yes or no" and then have login.html either
direct the user to a different data entry page (if the login was good), or
display "sorry, try again" - all from the 1 form's "submit"

If ($auth != true)
 {
 header('Location: http://www.example.com/login.html');

exit;

This will potentially save you some headaches.... Read more at:

http://php.net/header


Yeah, you're right. But I didn't see headaches = OFF in the OP's question.  :-)

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux