Ok, I have worked out all the kinks but now the issue im having is no matter how I fill out the forum if I leave it blank or fill it all the way out, it still goes to the error.html file below is my form code and the php code.
here is the form code
<form method="POST" action="process.php" webbot-action="--WEBBOT-SELF--">
<table width="985">
<tr>
<td width="900" height="500" align="center" valign="top">
<table width="726">
<tr>
<td align="left" valign="top"><p>I will be putting a bunch of text here so eat my ass in the mean time.</p><br /></td>
</tr>
</table>
<table width="726">
<tr>
<td width="216" align="left" valign="top">
Main Characters Name.<br />
<input type="text" name="CName" size="15">
</td>
<td width="498" align="left" valign="top">
E-Mail Address (ISP Email Recommended)<br />
<input type="text" name="EMail" size="30">
</td>
</tr>
<tr>
<td width="216" align="left" valign="top">
What Class is your Main Character?
<select name="CClass">
<option selected>
Choose a Class
<option>
Death Knight
<option>
Druid
<option>
Hunter
<option>
Mage
<option>
Paladin
<option>
Priest
<option>
Rogue
<option>
Shaman
<option>
Warlock
<option>
Warrior
</select>
</td>
<td width="498" align="left" valign="top">
What Race is your Main Character?<br />
<select name="CRace">
<option selected>
Choose a Class
<option>
Draenei
<option>
Dwarf
<option>
Gnome
<option>
Human
<option>
Night Elf
</select>
</td>
</tr>
<tr>
<td width="216" align="left" valign="top">
What's your main Characters level?<br />
<input type="text" name="CLevel" size="15">
</td>
<td width="498" align="left" valign="top">
Which member referred you?<br />
<input type="text" name="Referral" size="15">
</td>
</tr>
</table>
<table width="726">
<tr>
<td width="232" align="left" valign="top">
Why do you wish to join Requiem of Blood?<br />
<textarea rows="3" name="Message1" cols="115"></textarea>
<br />
</td>
</tr>
<tr>
<td width="232" align="left" valign="top">
Describe what you looking for in a Guild.<br />
<textarea rows="3" name="Message2" cols="115"></textarea>
<br />
</td>
</tr>
<tr>
<td width="232" align="left" valign="top">
Do you consider yourself a veteran WoW player, why, what areas of the game do you know the most about?<br />
<textarea rows="3" name="Message3" cols="115"></textarea>
<br />
</td>
</tr>
<tr>
<td width="232" align="left" valign="top">
List all ALTS (Name, Level, and Main skills.)<br />
<textarea rows="3" name="Message4" cols="115"></textarea>
<br />
</td>
</tr>
<tr>
<td width="232" align="left" valign="top">
What Guilds have you been a part of and why did you leave?<br />
<textarea rows="3" name="Message5" cols="115"></textarea>
<br />
</td>
</tr>
<tr>
<td width="232" align="left" valign="top">
Is there anything else you think we need to know about you?<br />
<textarea rows="3" name="Message6" cols="115"></textarea>
<br />
<br />
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
here is the php code
<?php
if ( ! $conf = formmail() )
{
header('Location: http://www.requiemofblood.com/application/error.html');
}
else
{
header('Location: http://www.requiemofblood.com/application/thankyou.html');
}
function formmail()
{
$form_elements= array(
'CName' => 'Character Name',
'Email' => 'E-Mail Address',
'CClass' => 'Character Class',
'CRace' => 'Chraccter Race',
'CLevel' => 'Character Level',
'Referral' => 'Character Referal',
'Message1' => 'Message1',
'Message2' => 'Message2',
'Message3' => 'Message3',
'Message4' => 'Message4',
'Message5' => 'Message5',
'Message6' => 'Message6',
);
$MailBody = '<html><body>';
while( list( $key, $value ) = each( $form_elements ) )
{
if ( empty( $_POST[$key] ) )
{
return false;
}
$MailBody .= $value. '<p>'. strip_tags( $_POST[$key] ) . ' :</p>';
}
$MailTo = 'admin@requiemofblood.com'; //email to send the results to
$MailSubject = 'Guild Application'; //text in the Subject field of the mail
$MailSent = 'Thank you for contacting us, We will reply within 24 hours.'; //confirm image
$MailHeader = 'MIME-Version: 1.0' . "\r\n";
$MailHeader .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$MailHeader .= 'To: Recruitment Team <admin@requiemofblood.com>' . "\r\n";
$MailHeader .= 'From: <'. $_POST['Email'] .'>' . "\r\n";
$MailBody .= '</html></body>';
if ( !mail($MailTo, $MailSubject, $MailBody, $MailHeader) )
{
return false;
}
return true;
}
?>