I wanted to get some opinions from some others on a good way to secure a mail form so it can not be spammed through.
Here is what I thought would be a good way:
1) put all form data into a string and use stripslashes() so they can not change the email headers
2) check the refering URL to make sure it is only coming from the page that it is supposed to
I had gotten information before from some other that this would be fine unless the spammer new that I was using these two tactics to try to circumvent anyone from exploiting my mail form.
What do you think? Are there some better ways that I can do this? Are there any secure forms that someone has written that I might save time by using?
Thanks!