Hey hey...no stereotyping!!!
So.........can you write it for me?
...just kidding.
Thanks for the comments.
I didn't have much time to work on this today, as I am trying to get a cron job to run an .sh backup script.
But I had something in mind:
ereg('[!@#$%^&*()_+-=[]\{}|;':",./<>?]', $FormUserName)
That was from memory, so it may be off a little.
I tried using it in the switch($log_in), but it gave some unexpected results.
switch($log_in)
{
case !$FormUserName || !$FormUserPass:
$error = "Please fill out both fields";
break;
case ereg('[!@#$%^&*()_+-=[]\{}|;':",./<>?]', $FormUserName):
$error = "Please enter your user name again."
}
I believe is close to what I tried. I have the code at work.
Regarding the md5(), I plan to use that, but I am just taking it step-by-step. I figure I would get the standard validation working, then move to the query again.
The real fun will be coding the admin page, where the admin can add, delete or modify users and survey URL's.
Any suggestions on the above code?
Thanks again.
~Az