HTML:
Código:
PHP: <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>
Código:
El caso esque al dar enviar me muestra todo el codigo del send.php pero no hace nada ;/<?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&'; ?>
Gracias de antemano