rendered paste body function sendForm(Core_Sijax_Response $response, $arg) {
include('functions/functions.php');
$dbh = dbConnect();
$insertSQL = "INSERT INTO contacts (contact_hash, date_entered, salutation, first_name, last_name, phone_home, phone_mobile, email1) VALUES (:contact_hash, :date_entered, :salutation, :first_name, :last_name, :phone_home, :phone_mobile, :email1)";
$sth = $dbh->prepare($insertSQL);
$sth->execute(array(':contact_hash' => uniqid().uniqid(),
':date_entered' => fecha(),
':first_name' => $arg['first_name'],
':salutation' => $arg['salutation'],
':last_name' => $arg['last_name'],
':phone_home' => $arg['phone_home'],
':phone_mobile' => $arg['phone_mobile'],
':email1' => $arg['email1']));
$response->script("$('#1st-level').dialog('close');");
}