[insert_php]
// check for form submission – if it doesn’t exist then send back to contact form
//if (!isset($_POST[«save»]) or $_POST[«save»]!=»contact») {
// header(‘Location: http://www.argenchemical.com.ar/contactenos/’);
// exit();
//echo «pase por acá»;
//}
// get the posted data
//$name = $_POST[«txtNombre»];
//$email_address = $_POST[«txtEmail»];
//$titulo = $_POST[«txtTitulo»];
//$message = $_POST[«txtDescripcion»];
// check that a name was entered
//if (empty ($name)){
// $error = «Debe ingresar un Nombre.»;
// check that an email address was entered
//}elseif (empty ($email_address)) {
// $error = «Debe ingresar un correo electrónico.»;
// check for a valid email address
//}elseif (!preg_match(«/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/», $email_address)) {
// $error = «Debe ingresar una dirección de correo electrónico valida.»;
// check that a message was entered
//}elseif (empty ($message)){
// $error = «Debe ingresar un mensaje.»;
//}
// check if an error was found – if there was, send the user back to the form
//if (isset($error)) {
//echo «hay un error»;
//header(«Location: ../contactenos/?e=».urlencode($error)); exit;
//}
// write the email content
//$email_content = «Nombre: $name\n»;
//$email_content .= «Email: $email_address\n»;
//$email_content .= «Mensaje:\n$message»;
//echo «
Gracias por contactarnos
pronto nos pondremos en contacto con usted
«;
// send the email
//mail(«info@argenchemical.com.ar», $titulo, $email_content);
[/insert_php]