For many small-business websites in Dubai, the enquiry form is the main reason the site exists. When it quietly fails, nobody notices for weeks. This checklist covers the dull parts that decide whether an enquiry actually reaches a person.
1. Start with a form that works without JavaScript
Build the plain HTML version first. If your script fails to load, the form should still submit as a normal POST. This snippet is illustrative, not production code, and the endpoint is a placeholder:
<form action= "/enquiry" method= "post" > <div role= "alert" id= "form-errors" hidden ></div>
<p> <label for= "name" > Name (required) </label> <input id= "name" name= "name" type= "text" autocomplete= "name" required maxlength= "100" > </p>
<p> <label for= "email" > Email (required) </label> <input id= "email" name= "email" type= "email" autocomplete= "email" required maxlength= "254" > </p>
<p> <label for= "enquiry" > Your enquiry (required) </label> <textarea id= "enquiry" name= "enquiry" rows= "6" required maxlength=…