Set adjacent css columns to the same height

This one’s been driving people nuts since we made the switch to css layouts from tables. With a little jQuery, here’s the solution I’ve used. Just change “div” to the selector of the elements you want to equalize. [js]var maxHeight = 0; $(‘div’) .each(function() { maxHeight = Math.max(maxHeight, $(this).height()); })<code> .height(maxHeight);</code>[/js] Once again, thanks to StackOverflow for the solution.

Help folks out when your form fails

Your form has failed, and you’ve shown your visitor an error message asking them to contact you by email. Why not take it a step further and copy the contents of the form into an email message for them? So here’s our form submit code. [php]<?php if (isset($_POST["frmSubmit"])) { if(!isset($_POST["name"]) || !isset($_POST["email"])) { header("Location: registration_sent.php?error=2"); } else { $firstname = …