- This topic is empty.
-
AuthorPosts
-
May 22, 2013 at 4:28 am #44965Historical Forums UserParticipant
So I’m currently using the form given here:
http://boxiedesigner.com/web-design/creating-an-html5-and-css3-form-using-the-new-form-types/It’s a CSS form, I’ve customised it in terms of design.. But I can’t find a way to make the form send an Email using PHP.
Also, when clicking the submit button, I just want a pop-up box that says “Successful!” instead being sent to another page.
Please help me with WHERE to put the PHP code.
Thanks a lot in advance! :)
May 22, 2013 at 10:04 am #135999unasAquilaParticipantthere are several tutorials form making functional contact forms
[custom-php-contact-forms](http://www.1stwebdesigner.com/tutorials/custom-php-contact-forms/) & [send-email](https://css-tricks.com/snippets/php/send-email/) & [video tutorial](http://www.youtube.com/watch?v=fLbtyu-QfUo) hopefully you will get what you need from 1 of these.May 22, 2013 at 5:42 pm #136078__Participant*****
http://www.1stwebdesigner.com/tutorials/custom-php-contact-forms/… always check if the form was submitted before trying to process it
… always validate user-submitted data (make sure it *is* what you *expected*)
… don’t use `die()` for error handling
… don’t use the visitor’s email address in the `From` header
… also, as noted in the tutorial’s comments, this form in vulnerable to [header injection](http://wikipedia.org/wiki/Email_injection)
*****
https://css-tricks.com/snippets/php/send-email/… many of the same issues (no header injection, though!)
… doesn’t check if sending email was successful or not; says “thanks” either way
I was helping someone (don’t remember who) with this example a few months back.
[Here’s what we came up with](https://gist.github.com/customanything/4385576).*****
http://boxiedesigner.com/web-design/creating-an-html5-and-css3-form-using-the-new-form-types/… just the form (doesn’t actually send mail)
June 4, 2013 at 6:14 am #137579moonmicrosystemMemberIf you’re using a supported browser, clicking on the “Email This Form” button will email the content of the form to the test address “[email protected]”
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.