My PHP scripts receive information (from a user-submitted form) and send it (almost) immediately in the form of email. What sainitization should I do on the data?
I want to know exactly which PHP function to use to sanitize data.
You need to read the email. Look at here:
http://www.damonkohler.com/2008/12/email-injection.html
See Filtering PHP Data . There are many built-in php functions that can be used to check and deactivate data.
: