I've got a form with required fields, but it allows me to submit the form without a value in required fields. What would be the best way to validate this?
<form action="formmail.php" method="post" id="orderform" onsubmit="formmail.php">
<input name="company" id="company" type="text" class="orderFormFields" placeholder="Company Name" />
<input name="name" id="name" type="text" class="orderFormFields" placeholder="Name" required/>
<input name="phone" id="phone" type="text" class="orderFormFields" placeholder="Phone" required/>
<input name="email" id="email" type="email" class="orderFormFields" placeholder="Email" required/>
<button class="formButton" type='submit' id='submit' value='Submit'/>
</form>