I know this is a really stupid question, but I'm a real newbie at PHP (like less than 2 weeks).
What I need to know is a simple (simple mind you) way, if there is one, to ensure that form only contains a-z, A-Z, 0-9, @, or . characters.
I have done a search on these forums, but I'm afraid that I don't really understand quite what I'm getting as a result.
I had thought about using str_replace or preg_replace, but I'm not quite sure how the functionality would work....
I'd like to have it assumed that the fields to check are named in the form as
username
email
$a = $REQUEST['username'];
$b = $REQUEST['email'];
If you could be of any assistance in this I'd certainly appreciate you for helping an admittedly clueless newbie.
Thanks....