<?
/*
    CHFEEDBACK.PHP Feedback Form PHP Script Ver 2.01.
    Generated by thesitewizard.com's Feedback Form Wizard.
    Copyright 2000-2003 by Christopher Heng. All rights reserved.
    thesitewizard and thefreecountry are trademarks of Christopher Heng.

    $Id: phpscript.txt 1.1 2003/04/17 11:53:45 chris Exp $

    Get the latest version, free, from:
        http://www.thesitewizard.com/wizards/feedbackform.shtml

    You can contact me at:
        http://www.thesitewizard.com/feedback.php

    LICENCE TERMS
    
    1. You may use this script on your website, with or
    without modifications, free of charge.
    
    2. You may NOT distribute or republish this script,
    whether modified or not. The script is meant for your
    personal use on your website, and can only be
    distributed by the author, Christopher Heng.
    
    3. THE SCRIPT AND ITS DOCUMENTATION ARE PROVIDED
    "AS IS", WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
    IMPLIED WARRANTY OF MECHANTABILITY OR FITNESS FOR A
    PARTICULAR PURPOSE. YOU AGREE TO BEAR ALL RISKS AND
    LIABILITIES ARISING FROM THE USE OF THE SCRIPT,
    ITS DOCUMENTATION AND THE INFORMATION PROVIDED BY THE
    SCRIPTS AND THE DOCUMENTATION.

    If you cannot agree to any of the above conditions, you
    may not use the script. 
    
    Although it is NOT required, I would be most grateful
    if you could also link to thesitewizard.com at:

       http://www.thesitewizard.com/

*/

// ------------- CONFIGURABLE SECTION ------------------------

// $mailto - set to the email address you want the form
// sent to, eg
//$mailto		= "youremailaddress@example.com" ;

$mailto = 'henryzanella@gmail.com' ;
//$mailto = 'lacomedialocal@hotmail.com' ;

// $subject - set to the Subject line of the email, eg
//$subject	= "Contacto desde LACOMEDIALOCAL.com" ;

$subject = "Solicitud Contratacion LACOMEDIALOCAL.com" ;

// the pages to be displayed, eg
//$formurl		= "http://www.example.com/feedback.html" ;
//$errorurl		= "http://www.example.com/error.html" ;
//$thankyouurl	= "http://www.example.com/thankyou.html" ;

$formurl = "http://www.lacomedialocal.com/henzan2/contacto_contrato.php" ;
$errorurl = "http://www.lacomedialocal.com/henzan2/error_contrato.php" ;
$thankyouurl = "http://www.lacomedialocal.com/henzan2/gracias.php" ;

// -------------------- END OF CONFIGURABLE SECTION ---------------

$name = $_POST['name'] ;
$email = $_POST['email'] ;
$ciudad = $_POST['ciudad'] ;
$empresa = $_POST['empresa'] ;
$telefono = $_POST['telefono'] ;
$celular = $_POST['celular'] ;
$fecha = $_POST['fecha'] ;
$mensaje = $_POST['mensaje'] ;

if (!isset($_POST['email'])) {
	header( "Location: $formurl" );
	exit ;
}

if (empty($name) || empty($email) || empty($mensaje)) {
   header( "Location: $errorurl" );
   exit ;
}


$messageproper =

	"Este mensaje fue enviado por:\n" .
	"$http_referrer\n" .
	"------------------------- NOMBRE -------------------------\n\n" .
	$name .
	"\n\n------------------------------------------------------------\n" .

	"------------------------- EMAIL -------------------------\n\n" .
	$email .
	"\n\n------------------------------------------------------------\n" .
	
	"------------------------- CIUDAD -------------------------\n\n" .
	$ciudad .
	"\n\n------------------------------------------------------------\n" .

	"------------------------- EMPRESA -------------------------\n\n" .
	$empresa .
	"\n\n------------------------------------------------------------\n" .

	"------------------------- TELÉFONO -------------------------\n\n" .
	$telefono .
	"\n\n------------------------------------------------------------\n" .

	"------------------------- CELULAR -------------------------\n\n" .
	$celular .
	"\n\n------------------------------------------------------------\n" .

	"-------------- FECHA SOLICITADA PARA EL EVENTO ---------------\n\n" .
	$fecha .
	"\n\n------------------------------------------------------------\n" .

	"------------------------- MENSAJE -------------------------\n\n" .
	$mensaje .
	"\n\n------------------------------------------------------------\n" ;
	
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.01" );
header( "Location: $thankyouurl" );
exit ;


?>
