Re: Sending email issue
The preg_replace checks the input for a specific pattern of numbers/letters/characters. (I.E. yourEmail@email.com). That protects to make sure it is a valid email and to prevent any unwanted code (SQL injection).
To make it easier just change the $email to $from_email. You defined $from_email but called an undefined variable $email.
Last edited by as4s1n; 05-13-2010 at 11:40 AM.
There is no such thing as a "stupid question," there are only "stupid people" who don't ask them.