Mandatory Feild on Web Form

Good Afternoon

Is it possible to make the email feild mandatory, with the form not sending until this feild has been completed?

Thank you

]<br />
<td><font face="Arial" color="#000000"><label for="sendto">Support Team</label></td><td><select  id="sendto" name="sendto"><option>Please select one</option>
<option value="sales">Sales</option>
<option value="training">Training</option>
<option value="service">Service</option>
<option value="general">General</option>
<td><font face="Arial" color="#000000"><label for="name">Name</label></td><td><input type="text" id="name" name="fullname" /></td>
<td><font face="Arial" color="#000000"><label for="email">Email</label></td><td><input type="text" id="email" name="email" /></td>
<td><font face="Arial" color="#000000"><label for="subject">Subject</label></td><td><input type="text" id="subject" name="subject" /></td>
<td><font face="Arial" color="#000000"><label for="message">Message</label></td><td><textarea cols="50" rows="4" name="message"></textarea></td>	
<input type="submit" >

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You should have a quick read on HTML5 input types and validation.  Most browsers have fantastic support for built in validation now.
Instead of:

<input type="text" id="email" name="email" />

Open in new window

<input type="email" id="email" name="email" required />

Open in new window

The "type='email'" will bring up more optimized keyboards on mobile phones / tablets, and will also do basic validation on the format, so you can't just type "sample" in the box.
"required" will have the browser automatically stop the form submission if there's no value in there.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WashcareAuthor Commented:
Thank you - simple and effective
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.