This is the php formmailer script from modules/apply.php:
<?php
if (!$RealName) {echo "You must enter your Real Name."; } else {
if (!$Age) {echo "You must enter your Age."; } else {
if (!$Character_Alias) {echo "You must enter your Characters Name."; } else {
if (!$Character_Class) {echo "You must enter your Characters Class."; } else {
if (!$Character_Level) {echo "You must enter your Characters Level."; } else {
if (!$Character_Race) {echo "You must enter your Characters Race."; } else {
if (!$SundayAvailability) {echo "You must enter your availability on Sundays."; } else {
if (!$MondayAvailability) {echo "You must enter your availability on Mondays."; } else {
if (!$TuesdayAvailability) {echo "You must enter your availability on Tuesdays."; } else {
if (!$WednesdayAvailability) {echo "You must enter your availability on Wednesdays."; } else {
if (!$ThursdayAvailability) {echo "You must enter your availability on Thursdays."; } else {
if (!$EmailAddress) {echo "You must enter your Email Address."; } else {
if (!$AIMSN) {echo "You must enter your AIM Screen Name, or type N/A."; } else {
if (!$MSNSN) {echo "You must enter your MSN Screen Name, or type N/A."; } else {
if (!$YSN) {echo "You must enter your Yahoo! Screen Name, or type N/A."; } else {
if (!$Profession1) {echo "You must enter your Primary Profession."; } else {
if (!$Profession1_Level) {echo "You must enter your Primary Profession's Level."; } else {
if (!$Profession2) {echo "You must enter your Secondary Profession."; } else {
if (!$Profession2_Level) {echo "You must enter your Secondary Profession's Level."; } else {
if (!$Guild_History) {echo "You must enter your Recent Guild History"; } else {
if (!$Expectations) {echo "You must enter your Expectations of Mediocracy"; } else {
if (!$GearSummary) {echo "You must summarize your gear for us."; } else {
if (!$BCRaidExperience) {echo "You must enter your Raid Experience in the Burning Crusade"; } else {
PRINT "Thank you for applying to Mediocracy!";
$EmailTo = '' . ', ';
$EmailTo = '' . ', ';
$EmailTo = '' . ', ';
$EmailTo = '' . ', ';
$EmailTo = 'rrohljr@gmail.com' . ', ';
$Subject = "Mediocracy Application: ".$_POST['Character_Level'].$_POST['Character_Class'].$_POST['Character_Alias'];
$Body .= "\n \n Real Name: ".$_POST['RealName'];
$Body .= "\n Age: ".$_POST['Age'];
$Body .= "\n \n Character Name: ".$_POST['Character_Alias'];
$Body .= "\n Character Race/Class: ".$_POST['Character_Race'].' '.$_POST['Character_Class'];
$Body .= "\n Character Level: ".$_POST['Character_Level'];
$Body .= "\n \n Life Status: ".$_POST['Status'];
$Body .= "\n \n Days Available to Raid: \n";
$Body .= " Sunday Availability: ".$_POST['SundayAvailability'];
$Body .= "\n Monday Availability: ".$_POST['MondayAvailability'];
$Body .= "\n Tuesday Availability: ".$_POST['TuesdayAvailability'];
$Body .= "\n Wednesday Availability: ".$_POST['WednesdayAvailability'];
$Body .= "\n Thursday Availability: ".$_POST['ThursdayAvailability'];
$Body .= "\n \n Contact Information: \n";
$Body .= "\n EMail Address: ".$_POST['EmailAddress'];
$Body .= "\n AIM Screen Name: ".$_POST['AIMSN'];
$Body .= "\n MSN Screen Name: ".$_POST['MSNSN'];
$Body .= "\n Yahoo! Screen Name: ".$_POST['YSN'];
$Body .= "\n \n Profession 1: ".$_POST['Profession1'];
$Body .= "\n Profession 1 Level: ".$_POST['Profession1_Level'];
$Body .= "\n Profession 2: ".$_POST['Profession2'];
$Body .= "\n Profession 2 Level: ".$_POST['Profession2_Level'];
$Body .= "\n \n Other Guilds and Servers: ".$_POST['Guild_History'];
$Body .= "\n \n What do you expect?: ".$_POST['Expectations'];
$Body .= "\n \n Gear Summary: ".$_POST['GearSummary'];
$Body .= "\n \n BC Raid Experience: ".$_POST['BCRaidExperience'];
$Body .= "\n \n \n \n \n \n";
mail($EmailTo,$Subject,$Body,"From: join@mediocracyguild.com");}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
?>
When I submit the application and post it to this page that contains the above script, my error appears... it says "You must enter your Real Name." However, this error appears whether or not I have anything submitted into the field or not. I suspect I'm doing something wrong in the coding. Perhaps the script is too elaborate and I should just be using an if-else statement... I don't know. I'm new to this stuff, and I'm just looking to accomplish something simple... making every field required on the form.
You can test it out @ http://mediocracyguild.com/apply.php if it helps with trying to figure out what's wrong.