• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Email Form Field

bluestrobe

Platinum Member
Title says most of it. Right now I have a direct email link as a "Contact Us" on my web site. I would like to make a form field where the sender enters their information and it gets sent to us. I have searched it and found literally thousands of ways of doing it. I'm not good with CGI and only know HTML and some CSS. So what is the best and easiest way to go about doing this?
 
The easy way, from the other thread:

Use "mailto:address@mydomain.com" as the form action, explained here

mailto = from the user's email program and their mail server
script = from the web server's mail server

No one will try to hijack your mail server for spam using a mailto: link, since they would be using their own mail server.


The other approach is to validate the fields with server-side script code to reject the form submit if:
1. bad stuff found: web links, junk emails, porn/drug words, etc.
2. good stuff not found: check that a number field has good numbers, a street address has a normal range of words (2-10?), etc.

Also, the desination email address should be hard-wired into the server script code that processes the form, it should not be something easy to hack like a hidden form variable.
 
Back
Top