
Originally Posted by
kows
oh, and I wouldn't suggest using any of the code that NightHawk posted. it's messy and has a lot of repetitive code, and the only feature of it is that it has an INSERT query at the end of it. you should not get into the habit of echoing HTML, as PHP is an embedded language and should be treated like one.
I should point out that the code I posted above is code from my php class last year and we were taught to code like that. However, the code we were give this year does not use html within the echo statement but like so:
PHP Code:
echo 'authenticated=queryFailed';
The above just being the echo then message in single quotes!