Search results

  1. D

    PHP mail script - How do you set $to as a field value?

    I have a form where the sender enters in their own email. I was able to insert the email here: mail("$email", $subject, $message, $from); But since I've switched from plain text to HTML email, it does not work anymore. It won't even work when I put it here: $headers .= 'From: $email' ...
  2. D

    How do I validate my PHP form using the following code?

    This is the code I'm using, but it is specifically for drop-downs. I need to validate text and textarea too, but I'm not sure how to modify the code in order to do this. Would anyone know how to do this? Or point me to a page that explains the different options? I'm having issue finding this...
Back
Top