|
|
Posted by Frits van Leeuwen on 08/21/06 11:05
Oke, now i know my problem. i saved my file as MS-Windows file. it has to be
an Unix file.
Let's start.
I have:
<?PHP
echo "<HTML><BODY>";
echo "I need a PHP login-page without MYSQL or ODBC<br>"
// page with login form
// page when good
// page when wrong
echo "</BODY></HTML>";
?>
"dimo414" <dimo414@gmail.com> schreef in bericht
news:1155892223.971616.145980@h48g2000cwc.googlegroups.com...
> Sure, it's possible to put it all in the same file; you'd just need to
> create an if statement testing if the request method is post, or if
> they're already logged in; if not, it'll output the form instead.
>
> Also, you need to add exit; after any header('location: ......');
> changes, otherwise the script will still contine to execute.
>
[Back to original message]
|