that code posted by H&K is not entirely secure (and potentially heavy on server load).
If you can, make sure you have the PEAR modules installed and use PEAR DB and possibly PEAR AUTH to create a much more secure login system.
If you can, make sure you have the PEAR modules installed and use PEAR DB and possibly PEAR AUTH to create a much more secure login system.