Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/04/2011, 14:43
batallas
 
Fecha de Ingreso: febrero-2011
Ubicación: Ávila, España
Mensajes: 44
Antigüedad: 13 años, 9 meses
Puntos: 1
Intento de envio form por mail que no funciona XD

Hola, estoy buscando por internet metodos, he probado varios y no doy con ello... os pongo el codigo haber si veis el fallo porque por mas que cambio y pruebo nada de nada...

HTML:

Código:
<div id="apDiv1">
  <p align="center">The favor of your reply is requested on or before April 23, 2011</p>
  <p align="center"> *</p>
  <p><em>Thank   you for taking part in our special day! If you have received an RSVP   card for our reception, please provide the following information, as   applicable, and submit the form:</em></p>
  <p>Entrée Selections</p>
  <p>Selection <strong>1</strong>: Sweet Chili Glazed Salmon</p>
  <p>Selection <strong>2</strong>: Lemon Beurre Blanc Boneless Chicken Breast</p>
  <p>Selection 3: Vegetable Napoleon Tower with Eggplant</p>
  <p>*</p>
  <p>Please list all guests full names followed by Entrée selections</p>
  
  <form id="contact" name="contact" action="send.php" method="post">

  <p><label>Name:<input type="text" name="name1" id="name1" />Selection
  <input type="text" name="selection1" id="selection1" />
    (Insert 1,2 or 3 deppending on your entrée selection) 
    </label></p>
    <p><label>Name:<input type="text" name="name2" id="name2" />Selection
  <input type="text" name="selection2" id="selection2" />
    (Insert 1,2 or 3 deppending on your entrée selection) 
    </label></p>
    <p><label>Name:<input type="text" name="name3" id="name3" />Selection
  <input type="text" name="selection3" id="selection3" />
    (Insert 1,2 or 3 deppending on your entrée selection) 
    </label></p>
<p><label>Name:<input type="text" name="name4" id="name4" />Selection
  <input type="text" name="selection4" id="selection4" />
    (Insert 1,2 or 3 deppending on your entrée selection) 
    </label></p>
    <p><label>Name:<input type="text" name="name5" id="name5" />Selection
  <input type="text" name="selection5" id="selection5" />
    (Insert 1,2 or 3 deppending on your entrée selection) 
    </label></p>
    <p>Write something you want to tell me, your phone or your e-mail or you want in text area.</p>
    <form id="form1" name="form1" method="post" action="">
      <textarea name="text" id="text" cols="80" rows="5"></textarea>
    </form>
    <p>Friendly Reminder: </p>
  <p>Attendance to the reception is granted through invitation only. <br />
    This is an adult only reception. </p>
  <p align="center">
    <input type="reset" value="Delete" name="Delete"/>
    <input type="submit" value="Submit" name="Submit"/>
  </p>

</div>
PHP:

Código:
<?php

$name1 = $_POST['name1'];
$selection = $_POST['selection1'];
$text = $_POST['text'];

$header = 'From: ' . $name1 . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$mensaje = "This messange was send by " . $name1 . " \r\n";
$mensaje .= "$name1 $selection1: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "$name2 $selection2: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "$name3 $selection3: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "$name4 $selection4: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "$name5 $selection5: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "Send: " . date('d/m/Y', time());

$para = '[email protected]';
$asunto = 'Wedding Names and Entrée Selection';

mail($para, $asunto, utf8_decode($mensaje), $header);

echo '&estatus=ok&';

?>
El caso esque al dar enviar me muestra todo el codigo del send.php pero no hace nada ;/

Gracias de antemano