Hello! this is only my 3rd time using PHP and need help locating the reason why
I'm not getting data back from this form. If you can help me correct the code or tell me
what I'm doing wrong, it will be deeply appreciated.
Thanks,
Ralph
This is the PHP code I have so far (I got it on line and replaced info with what i needed)
<?php
/ Email Variables /
$emailSubject = 'Inscripción Bailadores!';
$webMaster = 'mara@maratonico.com';
/ Data Variables /
$name = $POST['Nombre'];
$last = $POST['Apellido'];
$phone = $POST['Telefono'];
$address = $POST['Direccion'];
$apt = $POST['Apto'];
$city = $POST['Ciudad'];
$zipcode = $POST['Zip Code'];
$email = $POST['E-Mail'];
$name1 = $POST['Nombre'];
$Last1 = $POST['Apellido'];
$phone2 = $POST['Telefono'];
$Email2 = $POST['E-Mail'];
$comments = $_POST['comentarios'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Last: $Last <br>
phone: $phone <br>
address: $address <br>
apt: $apt <br>
city: $city <br>
zipcode: $zipcode <br>
email: $email <br>
name1: $name1 <br>
last1: $last1 <br>
phone2: $phone2 <br>
email2: $Email2 <br>
comments: $Comments <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/ Results rendered as HTML /
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;http://www.maratonico.com/eventos1.html">
<style type="text/css">
<!--
body {
background-color: #444;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fec001;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<div align="center">Hola! Gracias por su participacion y bienvenidos al Gran Maraton de Baile. Pronto nos comunicaremos con usted. !</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>