|
|
![]() |
|
|
|
||||||||||||||||||||||||
| Inicio |
|
|
||||||||||||||||||||||||||
|
|
Help Desk |
![]() |
|
|||||||||||||||||||||||||
|
|
Intranet | ![]() |
|
|||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||
|
|
|
|
|
|||||||||||||||||||||||||
|
|
|
|
![]() |
|
|
|
||||||||||||||||||||||
|
|
|
|
||||||||||||||||||||||||||
| SOLUCIONES Y EQUIPOS DE ALTA TECNOLOGIA |
|
|
|
|||||||||||||||||||||||||
|
|
|
|
||||||||||||||||||||||||||
|
|
![]() |
|
links de interes: PUBLICACIONES: Pc Magazine BUSCADORES: CORREO FREE: |
|
||||||||||||||||||||||||
![]() |
![]() |
Gracias por ponerse en contacto con nosotros. A la brevedad atenderemos su mensaje. Muchas Gracias. go back and make sure you enter it'; die(); } /*Now lets capture the rest of the form elements and provide error checking for each in the same way as above:*/ $company = $_POST['company']; if ( empty($company) ) { echo 'You did not enter your company, please go back and make sure you enter it'; die(); } $email = $_POST['email']; if ( empty($email) ) { echo 'You did not enter your email address, please go back and make sure you enter it'; die(); } $tel = $_POST['tel']; // for tel and fax it might not be necessary for it to be entered and so can be left blank $fax = $_POST['fax']; $comments = $_POST['comments']; if ( empty($comments) ) { echo 'You did not enter any comments, please go back and make sure you enter it'; die(); } /*Ok now the boring bit is over we can start putting together the email message that will be sent ready for sending. The following code creates a variable called $message and all of the variables from the form are added, along with extra text to go in the mail. carriage returns are created with "\n".*/ $message = 'Someone has filled out the contact form on your website' . "\n\n"; $message .= 'Name: ' . $name . "\n"; $message .= 'Company: ' . $company . "\n"; $message .= 'Email: ' . $email . "\n"; $message .= 'Tel: ' . $tel . "\n"; $message .= 'Fax: ' . $fax . "\n\n"; $message .= 'Comments: ' . "\n"; $message .= $comments; /*In the code below 2 variables are set, one is the email address the mail will be sent to, and the other who to CC.*/ $sendTo = 'example@example.com'; $Bcc = 'example@example.com'; /*The code below sets message headers - from, reply to and bcc addresses.*/ $headers = 'From: Contact Form <' . $email . '>' . "\r\n" . 'Reply-To: ' . $email . "\r\n" . 'Bcc: ' . $Bcc . "\r\n"; /*Ok now we can send the mail! which is really simple in php:*/ mail($sendTo, $subject, $message, $headers); /*Now the mail has been sent we can forward the browser to a confirmation page letting the user know their mail has been sent.*/ header ("Location: contact_done.html"); /*And that's about it! All that is left to do is create the HTML file called contact_done.html.*/ ?> |
|
|
||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||
|
. . . Resumen Ejecutivo |
|
![]() |
|
|||||||||||||||||||||||||
|
|
Experiencia, Calidad y Valor en el servicio a nuestros clientes. |
|
||||||||||||||||||||||||||
![]() |
|
|||||||||||||||||||||||||||
|
. . . Novedades |
![]() |
|
||||||||||||||||||||||||||
|
|
|
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
|
|
||||||||||||||||||||||||||
|
Copyright © Promotech México S.A. de C.V. |
|
|||||||||||||||||||||||||||
![]() |
|
|||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||
|
|
Paseo de la Reforma 423’3B Col. Cuauhtemoc CP 06500
Tel. 5207 3354 / 5207 4279 México D.F.
|
|
|
|||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||