
How to Avoid Becoming a “Code Grinder” • Chapter 2 63
<tr>
<td><input type="submit" value="Search"></td>
</tr>
</table>
</form>
</body>
</html>
There’s nothing special here, and there is certainly no security to be
had.What about the inclusion of JavaScript? Doesn’t that add security to
the form? Not really.This JavaScript is fairly common, and I include it for
that reason.A lot of folks assume (incorrectly) that it is enforcing security,
making sure that the user is entering data into the required fields, and
even doing some weak format checking. Even the least technical person
out there can disable JavaScript with a trivial amount of effort. Also, many