Another problem is in the last few lines of your php code. The header() function requires that no tet be sent to the browser before it is executed. This means that you can't redirect an unauthorized user and give them notification with php.
You may consider getting a more full-featured login script written by someone else. I'm using one that I found at evolt, here. It's quite handy and provides a good base to build the rest of your site on.
@maxxximus: Your avatar really had me fooled for a second. i was reaching out to squish it but then I realized it was an animation.
|