RE: Authentication Scripts

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

 



I spent hours on this as well, here's my solution : use HTML.

I put it in a function and call the function on condition fail.

	function goHome($dest = '') {
print("<!--window.location='index.html'; -->");  } 

Then, in index.html, I route right back to index.php with a zero second
refresh. That way, the refresh is not in the index.php script, --no header
conflict. 

This avoids header problems. It's ugly, but it works!

-----Original Message-----
From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On
Behalf Of teacherweeks
Sent: Wednesday, October 04, 2006 6:31 PM
To: php-objects@xxxxxxxxxxxxxxx
Subject:  Authentication Scripts

Ok, i have been working on this problem in my spare time for the better part
of a month now and can not figure it out so I am going to pose it to the
group.

I am trying to write an authentication script for a site I am building, it
is going to be a database login script, which I will need the user to be
redirected if the authentic fails. I however do not want to use the HEADER
function. Does anyone know how i might be able to do this.

David Weeks





PHP Data object relational mapping generator http://www.metastorage.net/
Yahoo! Groups Links






 









PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-objects/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:php-objects-digest@xxxxxxxxxxxxxxx 
    mailto:php-objects-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux