to see your error put @ in mysql for example
@mysql_query($query,$con) or die ("Error: $query ".mysql_error());
and in your $_POST['MM_insert'] == 'form1' why not just check the value of your submit button?
like
if (isset($_POST['your_submit_button_name']))
{
// your insert goes here.
}
and your insert why not just make it simple?, example
$query = "insert into mytable(name,age) values('yourname','12')";
@mysql_query($query,$con) or die ("Error: $query ".mysql_error());
even if you put '12' with quote it will be converted to the datatype of your column. bec that is what i am doing and it is working good.