Sir,
I have created a form to submit to e-mail with a php scripting file.But it is showing an error
Parse error: syntax error, unexpected T_VARIABLE in /home/webworld/public_html/e-appointment.php on line 5
Iam new to this php scripting Plz verify and resolve this problem.
Thanku
The following is the script I created.
<? php
/* subject and email variables */
$emailSubject = 'Online Appointment!';
$webMaster = 'seelamraja@gmail.com';
/* gathering data variables */
$EnterYourName = $_POST ['name'];
$PatientStatus = $_POST ['ps'];
$IfYouareOldpatientEnterOPnoor0 = $_POST ['op'];
$DateofLastVisited = $_POST['lastvisited'];
$Gender = $_POST ['gender'];
$DateOfBirth = $_POST ['db'];
$Eyeproblems = $_POST ['problems'];
$DateOfAppointment = $_POST ['da'];
$ResidentialAddress = $_POST ['add'];
$ResidentialCity = $_POST ['city'];
$State = $_POST ['state'];
$TelephoneNo = $_POST ['tfno'];
$Email = $_POST ['email'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Status: $ps <br>
IfOldpatient: $op <br>
Gender: $gender <br>
DateOfBirth: $db <br>
Eyeproblems: $problems <br>
DateOfAppointment: $da <br>
ResidentialAddress: $add <br>
ResidentialCity: $city <br>
State: $state <br>
telephoneNo: $tfno <br>
Email: $email <br>
EOD;
$headers = "From: $name\r\n";
$headers = Content-type: text/html/r/n";
$success = $webMaster, $emailSubject, $body, $headers);
*/Results Rendered as html */
$theResults = <<<EOD
?>