I have an online application for my martial arts school. People fill out the form and the php script is supposed to email their answers to me. This works fine whenever I test it, from both my home and office. However, I have had two friends thus far test it from other states and in both cases, their applications never arrive. I have no idea what to do. The application can be found here:
http://www.bdfatx.com/application.html
And here is my script, which is intended to take the data entered into the fields, format it, and send it to the webmaster email address:
[php]<?php
/* Email Variables */
$emailSubject = '-Application-';
$webMaster = '[email protected]';
/* Data Variables */
$firstnameField = $_POST['firstname'];
$lastnameField = $_POST['lastname'];
$ageField = $_POST['age'];
$sexField = $_POST['sex'];
$phoneField = $_POST['phone'];
$emailField = $_POST['email'];
$whybdfaField = $_POST['whybdfa'];
$hopetogainField = $_POST['hopetogain'];
$previousexperienceField = $_POST['previousexperience'];
$physicalconditionField = $_POST['physicalcondition'];
$truthField = $_POST['truth'];
$realityField = $_POST['reality'];
$perceptionField = $_POST['perception'];
$opinionField = $_POST['opinion'];
$beliefField = $_POST['belief'];
$religionField = $_POST['religion'];
$monday545Field = $_POST ['monday545'];
$monday630Field = $_POST ['monday630'];
$tuesday545Field = $_POST ['tuesday545'];
$tuesday630Field = $_POST ['tuesday630'];
$wednesday545Field = $_POST ['wednesday545'];
$wednesday630Field = $_POST ['wednesday630'];
$thursday545Field = $_POST ['thursday545'];
$thursday630Field = $_POST ['thursday630'];
$friday545Field = $_POST ['friday545'];
$friday630Field = $_POST ['friday630'];
$commentsField = $_POST['comments'];
$howhearField = $_POST['howhear'];
$body = <<<EOD
First Name: $firstnameField
Last Name: $lastnameField
Age: $ageField
Sex: $sexField
Phone: $phoneField
Email: $emailField
Hope to Gain: $hopetogainField
Why BDFA: $whybdfaField
Previous Experience: $previousexperienceField
Physical Condition: $physicalconditionField
Truth: $truthField
Reality: $realityField
Perception: $perceptionField
Opinion: $opinionField
Belief: $beliefField
Religion: $religionField
Availability:
Monday 5:45: $monday545Field
Monday 6:30: $monday630Field
Tuesday 5:45: $tuesday545Field
Tuesday 6:30: $tuesday630Field
Wednesday 5:45: $wednesday545Field
Wednesday 6:30: $wednesday630Field
Thursday 5:45: $thursday545Field
Thursday 6:30: $thursday630Field
Friday 5:45: $friday545Field
Friday 6:30: $friday630Field
Comments: $commentsField
How Hear: $howhearField
EOD;
$headers = "From: $emailField\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
[/php]
(I removed the HTML for the thank you since it doesn’t add anything to this question, I think. This was written following tutvid.com’s instructions.)
Thanks!