Server Side Help: HTML Form...submit to E-Mail
Copy link to clipboard
Copied
hello again...
Have to create 4 or 5 online forms for a website I built for my local area of NA (in DW). I found a basic HTML Form template at w3schools; & used that for my first form:
[dead link removed by moderator.]
So...when users finish & hit the Submit button, the form (& all included info) needs to go to our secretary's e-mail. I've read everything I can get my hands on regarding PHP but for a beginner coder such as myself...informationals on the web never tell you precisely *take this snippet...customize it thusly; & place it here*...even the instructionals on w3schools are vague on this topic (for people such as myself). So...can someone take a look at that form page; & point me in the right direction, at least?
thanx
mark4man
Copy link to clipboard
Copied
Have a look at this answer https://stackoverflow.com/questions/18379238/send-email-with-php-from-html-form-on-submit-with-the-s...
Copy link to clipboard
Copied
thanx, Ben...but that doesn't seem to help me. I worked for 2 hours trying to transfer info from MY form into the PHP code; & I'm just wasting my time. I know this sounds terrible, but I guess I just need someone to write me a PHP handler based on my form; & I'll have to pay them, I suppose. Don't know what else to do at this point
very frustrated
Copy link to clipboard
Copied
While simply dragging field types onto a form is easy, setting one up to have server side actions does require coding in Dreamweaver. Personally speaking in your case, there are some free, or cheap options seeing as how you may potentially be a non-profit business. I would consider looking into either a free form processor like a typeform ( https://www.typeform.com ) or wufoo ( https://www.wufoo.com ). Or if you need something more robust with a CRM backend, Hubspot ( https://www.hubspot.com ) may be a better option.
Copy link to clipboard
Copied
Secure form processing is complicated. In the wrong hands, an unsecured script can potentially leave your site vulnerable to hacking and exploitation by spam bots.
The mail sending library below is recommended by many hosting providers because it is secure and it doesn't rely on PHP mail() function to send mail.
https://github.com/PHPMailer/PHPMailer
Examples: https://github.com/PHPMailer/PHPMailer/tree/master/examples
If you can't code, I agree with Ben M. 3rd party form services are good for non-coders: MailChimp, Jotform or Wufoo.com are a few. Embed the service's code into your web page with copy & paste. Let them handle the rest.
NOTE: In most regions, it's a legal requirement to have both a Cookie Policy and a Privacy Policy on your site. See link below.
https://www.cookiebot.com/en/cookie-policy/
Good luck!

