Posts: 331
Location: Ontario, Canada
|
When it comes to this page from the form it says theres an error on line 25 but I can't find it.
heres the code:
Code:
<?php
if ($process == 'apply') { // Check What form they are using.
$process = $_GET['process'];
$fullname = $_POST['fullname'];
$xbuser = $_POST['xboxusername'];
$time = $_POST['time'];
$email = $_POST['email'];
$skill = $_POST['skill'];
if ($fullname == '' or $xbuser == '' or $time == '' or $email == '' or $skill == '') { // Check for Empty Inputs
?>
<script>
document.window.location="index.php?pn=apply&error=1";
</script>
<?php
} else {
$emailaddresses = "chris@dragongames.ca, {$email}";
$subject = "Application"
LINE 25 $mailbody = "<table>
<tr>
<td>
<div align=left>
Hello:<BR>
We have received your application.<BR>
We will get back to you soon.<BR>
Below is the information you have sent us.<BR>
If you find anything that is wrong please email: <a href=mailto:chris@dragongames.ca?SUBJECT=Application Mistake>Chris Krasnichuk</a><BR>
<table cellpadding=3 cellspacing=1>
<tr>
<td>
Full Name:
</td>
<td>
$fullname
</td>
</tr>
<tr>
<td>
Xbox Live Username:
</td>
<td>
$xbuser
</td>
</tr>
<tr>
<td>
Time:
</td>
<td>
$time
</td>
</tr>
<tr>
<Td>
Email:
</td>
<td>
$email
</td>
</tr>
<tr>
<td>
Skill Level:
</td>
<td>
$skill
</td>
</tR>
</table>";
mail($emailaddresses, $subject, $mailbody,
"From: $email1\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
}
}
?>
Thanks for the help in advance.
Chris
__________________
Name: Chris Krasnichuk
Email Address: Please login or register to view this content. Registration is FREE
|