Editing DOM client side using a Code inspector to Manipulate server side behaviour
<p>I have a form where each field is given certain properties via their class attribute.</p>

<p>i.e.  is both a required input, and is expecting its value to be formatted as an email address.</p>

<p>Using Javascript/jQuery, I have iterated through all the inputs in the form, determined each one's associated properties (if any) and submitted them via ajax for post-processing server side using PHP.</p>

<p>So the PHP will determine in the above input's example whether or not $_POST["email"] 1) has a value and 2) the value is an email address.</p>

<p>I've not had any problems getting any of this intended behaviour to work. My question/concern is how to prevent a user from manipulating each field's properties using a code inspector tool such as FireBug before submitting the form i.e. remove the "required" class for the "email" id so that they can successfully submit the form without providing an email input. Is there anything that can be done to prevent the cunning user to take advantage of this? Or is this simply the result of how I've designed the form validation?</p>

<p>Any insight would be much appreciated.</p>
