I see you have your fields in the wrong order. You have MeasureInBeam, ContactPermission in your insert statement, but when you list the values you have:
GetSQLValueString(isset($_POST['ContactPermission'])?"1":"0", "int"),
GetSQLValueString($_POST['Beam_Measure'], "text"));
That needs to be consistent. This is why hand editing is usually the wrong choice when you have Server Behaviors you can update ;)
The easiest solution is to switch the order of the columns above. I've done that and uploaded the page so you can see and compare.