Problem: Creating and hosting a web form on your website.
This is a complex problem: Internet technology is constantly evolving and requires deep technical knowledge. And the most important danger is: The many possible cyber security threats when hosting a web form that require complex measurements to mitigate!
Hosting a form on the internet means you must:
Deal with spammers and automatic bots.
Cyber Security: Hosting a web form makes every site a bit more vulnerable.
Have a software maintenance process that deals with security and privacy.
Make sure your form will be shown correctly on all devices and with all thinkable browsers.
Deal with vulnerabilities. Hosting a web form makes you vulnerable for data gathered. To safeguard trusted emails and other data should give you a headache. Data leakage must be prevented at all times.
Simple solutions are:
Do not use a web form. Never ever. Let our potential customers contact you by email or plain old telephone. Too often a simple contact web form does not give extra value. An interested customer will call or email you.
Use a hosted solution. Think of a Google web form or even better a hosted FOSS solution which takes care of the must do security measurements. Most complicated cyber security aspects on network security level are then handled by people who should have the expertise for this.
Use a proven battle tested FOSS solution. However the truth is: Hosting a web form means you will be continuously fighting spammers and hackers. Even if network security is managed by your hosting provider, receiving mail bombs is still possible.
DIY or buy a custom made solution. Note most custom solutions will not release you from all cyber and privacy misery that can occur!
If you like to know more and some simple cyber security solutions, check the Open Security Reference Architecture!