View Single Post
Old 12-20-2007, 10:44 PM   #18 (permalink)
Aaron
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

How would I use that code, though?

if($username == $strPattern. . .)

?

Oh, and wouldn't logging the IP be a good idea as well?

How would I do that? (I am going to look... but I haven't really found that many quality security tutorials. They are mostly preventing SQL injections and sessions, which I don't intend to get into just yet.



Update: Why doesn't this work properly? It should only allow names that contain alphabetical characters and spaces... It accepts anything.
Code:
if(!eregi("a-z[.a-z]$", $name)){}
        else{
            $error.="Please, go back and fill out your name. This is your actual name that we will need, not your username.<br>\n";
            }

Last edited by Aaron : 12-21-2007 at 03:12 AM.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote