Okay, I will try this @Eric, thank you. To be clear, will I still be using the PHP to send the form to the email address? This new line of JS will work hand in hand with the PHP, correct? My above PHP code does work, but it just won’t make the fields REQUIRED. Will the above JS make the fields REQUIRED? Thank you sir!
@hendrix – I don’t see any of your code?
However, I will say this:
Server-side validation is **always necessary**.
> This new line of JS will work hand in hand with the PHP, correct?
**Edit**: I may have misunderstood your question, here. No, they don’t work together (i.e., they don’t *interact*), but you may have been asking if they would *conflict* with each other? If so, that’s unlikely. **/edit**
If you’re still trying to figure this out, please point me to your code, and I’d be happy to help.
I’ve suggested that before, yes –
(1) copy+paste your code to [gist.github.com](http://gist.github.com)
(2) **** out any sensitive/secure info
(3) click on [Create Public Gist] and share the URL
I was only asking because your initial posts seem to have originally contained code, but do not now. Your original question seems to be missing as well – unless this thread is a continuation of your earlier [CONTACT FORM not working … please help!!](http://css-tricks.com/forums/discussion/comment/86155#Comment_86155) thread? Either way, it would be good if you could explain again where you are with your problem.
BTW, your email **is not** “from” the user. It’s “from” your website. Putting the user’s email address here will get your email dropped or flagged as spam by some mail servers or clients.
The `From` email address should always belong to a domain that is allowed to send mail from your mail server (e.g., *your* domain). The easiest solution here is a no-reply address. For example, if my website was `example.com`, I’d use `firstname.lastname@example.org`.
If you want to include the user’s email in the headers, the `Reply-to` field is a good place for it.
You must be logged in to reply to this topic.