hi i have a simple form script, how would i stop a cgi form from allowing a spammer from writing junk information through my form mail script to a text file if their input contains certain words like viagra or levitra? for instance, if $input does not contain "viagra,levitra" then do this: open and write the contents to this file,
however, if $input does contain "viagra,levitra" then don't write to the text file but don't just die, just skip the part about writing to the text file and continue down the script and email the user so that the spammer doesn't realize it's not writing their junk mail on the text file for these flagged words.
thanks,
jr
2007-02-03
16:44:25
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design