Jump to content

not displaying correctly


Nuker_Viper
 Share

Recommended Posts

when someone doen't fill the entire app out - it will display the areas they mess uped as an error like below. The problem i am having is: If submit it blank it should say all of them are errors but all i get is 1 and if i miss a few then it only displays a random error of the one of them i missed. here is the code and an example of the output.

<?php/*======================================================================*\|| #################################################################### |||| # Clan SwFd  -- Recruitment System V5							   # |||| # ---------------------------------------------------------------- # |||| # Copyright ©2008-2013 Nuker_Viper All Rights Reserved.			# |||| # This file may not be redistributed in whole or significant part. # |||| # ------------------- THIS IS NOT FREE SOFTWARE ------------------ # |||| # http://www.swfclan.com										   # |||| #################################################################### ||\*======================================================================*/// ###### Recruitment System 5.2.7 ######?><center><h2>Request To Join</h2></center><br><br><?php$reqcount = getWSInfo("reqjoincount");$maxreq = getWSInfo("maxjoinreq");if($reqcount < $maxreq) {if(!$submit) {$claname = getWSInfo("clanname");$PIS = "<img src='images/apps/personal.gif' border='0'>";$AIS = "<img src='images/apps/apps.gif' border='0'>";$GIS = "<img src='images/apps/gamer.gif' border='0'>";for($i=1; $i<=12; $i++) {$tempmonth = date("F", mktime(0,0,0,$i,1,2007));$bdaymonthoptions .= "<option value='$i'>$tempmonth</option>";}for($i=1; $i<=31; $i++) {$bdaydayoptions .= "<option value='$i'>$i</option>";}$currentyear = date("Y");$finalyear = $currentyear-100;for($i=$currentyear; $i>=$finalyear; $i--) {$bdayyearoptions .= "<option value='$i'>$i</option>";}$query = "SELECT * FROM {$dbprefix}timezone ORDER BY timezid ASC";$result = mysql_query($query)	 or die(mysql_error());while($row = mysql_fetch_array($result)){extract($row);$tz_options .= "<option value='$tz'>$gmt</option>";}$dst_options .= "<option value='Off'>No</option><option value='On'>Yes</option>";$query = "SELECT * FROM {$dbprefix}gamingstyles ORDER BY gs_id ASC";$result = mysql_query($query)	 or die(mysql_error());$row = mysql_fetch_array($result);extract($row);{$primary_options .= "<option value='$gs_name'>$gs_name - $gs_info</option>";$secondary_options .= "<option value='$gs_name'>$gs_name - $gs_info</option>";}echo "<blockquote><b>READ CAREFULLY</b><br>Please read and take your time when filling out this form. Accurate info on this form will speed up the process. Inaccuate info may result refusal to join or slow processing time.</b><br>If you would like to request joining <b>Clan SwFd</b> please fill out the form below <b>ENTIRLY</b>. Fill out ONE request to join and a member of personnel will contact you if you qualify.</blockquote><br><align='left'><br><b>NOTE that all fields are required. This Application is broken up into 3 sections. Each Section has its own Validator meaning if you miss a something it will tell you to go back and fix it, before continuing on to the next section. You must Complete all 3 sections before it will submit your application to join SwFd. Most of this information is to set-up your basic Profile and removes alot of time between the recruiter and the protential member.</b><br></align><br><br<br><form action='index.php?p=Join' method='post'><table align='center' border='0' cellspacing='0' cellpadding='5' width='600'><tr><td align='center' colspan='6'>$PIS<td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Your PSN/PS3 Screen Name:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='name1' class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>Your screen name will be your username on our site. It must be the exact way its spelled on the PS3/PSN with CAPS, lowercase, and Numbers. It is also the only way we will contact you so spell it right.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Choose a Password:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='password1' class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>This will be used as your password for our site. REMEMBER WHAT YOU PUT HERE! No Special Charaters.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Valid Email Address:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='email1' class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>Used with Retieve Password Feature on our site. Our clan and Staff will never send you SPAM from this Clan.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Location:</td></tr><tr><td align='center' colspan='3' class='apps_main'>State:</td><td align='center' colspan='3' class='main'>Country:</td></tr><tr><td align='center' colspan='3' class='apps_main'><input type='text' name='state1' class='form'></td><td align='center' colspan='3' class='main'><input type='text' name='country1' class='form'></td></tr><tr><td align='center' colspan='3' class='apps_info'>Needed for geographical purposes.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Age (Don't Lie):</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='age1' class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>Age is needed for tournament information.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Birthday:</td></tr><tr><td align='center' colspan='6' class='apps_main'><select name='bdaymonth1' class='form'>$bdaymonthoptions</select> <select name='bdayday1' class='form'>$bdaydayoptions</select> <select name='bdayyear1' class='form'>$bdayyearoptions</select></td></tr><tr><td align='center' colspan='6' class='apps_info'>Birthday is needed for Call of Duty: Elite information.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Gender:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='radio' name= 'gender1' class='form' value='Male' CHECKED>Male<input type='radio' name= 'gender1' class='form' value='Female'>Female</td></tr><tr><td align='center' colspan='6' class='apps_info'> </td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Your TimeZone:</td></tr><tr><td align='center' colspan='3' class='apps_main'><select name='timezone1' class='form'>$tz_options</select></td><td align='center' colspan='3' class='apps_main'><select name='timezone_dst1' class='form'>$dst_options</select></td></tr><tr><td align='center' colspan='3' class='apps_info'>Your timezone is needed so we know what time is it compared to our Staff members time.</td><td align='center' colspan='3' class='apps_info'>Are you currently under Daylight Savings Time?</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>About Me</td></tr><tr><td align='center' colspan='6' class='apps_main'><textarea name='message1' class='form' rows='10' cols='100'></textarea></td></tr><tr><td align='center' colspan='6' class='apps_info'>Tells us about yourself. As the Team Leaders we like to know who is under our leadership on a more personal level not just a hey you level. Also the more we know about you, the smaller chance of a misuderstanding happening.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6'>$GIS<td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Choose Your Main Game</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='radio' name= 'game1' class='form' value='CoD: Black Ops'>Black Ops<input type='radio' name= 'game1' class='form' value='CoD: MW3'>CoD: MW3<input type='radio' name= 'game1' class='form' value='Mass Effect 3'>Mass Effect 3<input type='radio' name= 'game1' class='form' value='CoD: Black Ops 2' checked>CoD: Black Ops 2</td></tr><tr><td align='center' colspan='6' class='apps_info'>The game you play most.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Do you currently have a Working Mic?</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='radio' name= 'workingmic1' class='form' value='NO' CHECKED>No <input type='radio' name= 'workingmic1' class='form' value='YES'>YES</td></tr><tr><td align='center' colspan='6' class='apps_info'>You must have a Mic that is currently working.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'></td></tr><tr><td align='center' colspan='6' class='apps_main'></td></tr><tr><td align='center' colspan='6' class='apps_info'></td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Gaming Style:</td></tr><tr><td align='center' colspan='3' class='apps_main'>Primary Style</td><td align='center' colspan='3' class='apps_main'>Secondary Style</td></tr><tr><td align='center' colspan='3' class='apps_main'><select name='pri_style1' class='form'>$primary_options</select></td><td align='center' colspan='3' class='apps_main'><select name='sec_style1' class='form'>$secondary_options</select></td></tr><tr><td align='center' colspan='3' class='apps_info'>Select what is your main gaming style.</td><td align='center' colspan='3' class='apps_info'>Select what is your secondary or alternative gaming style.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_main'><textarea name='gamingstyle1' class='form' rows='5' cols='50'></textarea></td></tr><tr><td align='center' colspan='6' class='apps_info'>Describe in detail how do you play.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Gaming Times:</td></tr><tr><td align='center' colspan='6' class='apps_main'><textarea name='gamingtimes1' class='form' rows='5' cols='50'></textarea></td></tr><tr><td align='center' colspan='6' class='apps_info'>When do you play the game?</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6'>$AIS<td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Referral?</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='refer1' class='form'></td></td></tr><tr><td align='center' colspan='6' class='apps_info'>What is the Screen Name of who refered you to our site. If it was by a search engine then use the search engine name as the referral.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Previous Clans:</td></tr><tr><td align='center' colspan='6' class='apps_info'>List the past 6 (six) clans you were/are in before applying to SwFd starting with clan 1 as the most recent. If the field is not needed the leave it blank.</td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1:</td><td align='center' colspan='2' class='apps_main'>Clan 2:</td><td align='center' colspan='2' class='apps_main'>Clan 3:</td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1: Tag: <br><input type='text' name='pc_one_tag1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 2: Tag: <br><input type='text' name='pc_two_tag1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 3: Tag: <br><input type='text' name='pc_three_tag1' class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1: Name: <br><input type='text' name='pc_one_name1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 2: Name: <br><input type='text' name='pc_two_name1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 3: Name: <br><input type='text' name='pc_three_name1' class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1: Website: <br><input type='text' name='pc_one_website1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 2: Website: <br><input type='text' name='pc_two_website1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 3: Website: <br><input type='text' name='pc_three_website1' class='form'></td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4:</td><td align='center' colspan='2' class='apps_main'>Clan 5:</td><td align='center' colspan='2' class='apps_main'>Clan 6:</td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4: Tag: <br><input type='text' name='pc_four_tag1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 5: Tag: <br><input type='text' name='pc_five_tag1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 6: Tag: <br><input type='text' name='pc_six_tag1' class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4: Name: <br><input type='text' name='pc_four_name1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 5: Name: <br><input type='text' name='pc_five_name1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 6: Name: <br><input type='text' name='pc_six_name1' class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4: Website: <br><input type='text' name='pc_four_website1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 5: Website: <br><input type='text' name='pc_five_website1' class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 6: Website: <br><input type='text' name='pc_six_website1' class='form'></td></tr><tr><td align='center' colspan='6'> </td></tr><br><tr><td class='titles' align='center' colspan='6' border='2' bordercolor='#000000'><input type='submit' name='submit' value='Submit Application for Review' class='apps_formbutton'></td></tr></table></form>";}elseif($submit) {$dispErrors = "";$dispCorrects = "";$errors = 0;$corrects = 0; if($name1 != "") {$corrects++;$dispCorrects = "Name: <font color='green'>Ok</font><br>";}elseif($name1 == "") {  $errors++;  $dispErrors = "Name: <font color='red'>Error - Cannot be left Blank</font><br>";}if($password1 != "") {$corrects++;$dispCorrects = "Password: <font color='green'>Ok</font><br>";}elseif($password1 == "") {  $errors++;  $dispErrors = "Password: <font color='red'>Error - Cannot be left Blank</font><br>";}if($email1 != "") {$corrects++;$dispCorrects = "Email: <font color='green'>Ok</font><br>";}elseif($email1 == "") {  $errors++;  $dispErrors = "Email: <font color='red'>Error - Cannot be left Blank</font><br>";}if($state1 != "") {$corrects++;$dispCorrects = "State: <font color='green'>Ok</font><br>";}elseif($state1 == "") {  $errors++;  $dispErrors = "State: <font color='red'>Error - Cannot be left Blank</font><br>";}if($country1 != "") {$corrects++;$dispCorrects = "Country: <font color='green'>Ok</font><br>";}elseif($country1 == "") {  $errors++;  $dispErrors = "Country: <font color='red'>Error - Cannot be left Blank</font><br>";}if($age1 != "") {$corrects++;$dispCorrects = "Age: <font color='green'>Ok</font><br>";}elseif($age1 == "") {  $errors++;  $dispErrors = "Age: <font color='red'>Error - Cannot be left Blank</font><br>";}if($message1 != "") {$corrects++;$dispCorrects = "About Me: <font color='green'>Ok</font><br>";}elseif($message1 == "") {  $errors++;  $dispErrors = "About Me: <font color='red'>Error - Cannot be left Blank</font><br>";}if($gamingstyle1 != "") {$corrects++;$dispCorrects = "Gaming Style: <font color='green'>Ok</font><br>";}elseif($gamingstyle == "") {  $errors++;  $dispErrors = "Gaming Style: <font color='red'>Error - Cannot be left Blank</font><br>";}if($gamingtimes1 != "") {$corrects++;$dispCorrects = "Gaming Times: <font color='green'>Ok</font><br>";}elseif($gamingtimes == "") {  $errors++;  $dispErrors = "Gaming Times: <font color='red'>Error - Cannot be left Blank</font><br>";}if($refer1 != "") {$corrects++;$dispCorrects = "Referral: <font color='green'>Ok</font><br>";}elseif($refer1 == "") {  $errors++;  $dispErrors = "Referral: <font color='red'>Error - Cannot be left Blank</font><br>";}  if($errors >= 1) { $dispError_Info = "The following errors were found:<br><br>$dispErrors"; }elseif($errors < 1) { $dispError_Info = "No Errors Found!"; }if($corrects >= 1) { $dispCorrect_Info = "Checks:<br>$dispCorrects"; }elseif($corrects < 1) { $dispCorrect_Info = "Checks:<br>ZERO Things Correct JackAss"; } if($errors >= 1) {echo "<table align='center' width='500' border='0'><tr><td align='left' width='500'>$dispCorrect_Info</td></tr><tr><td align='left' width='500'>$dispError_Info</td></tr><tr><td align='center' width='500'> </td></tr><tr><td align='center' width='500'> </td></tr></table>";$PIS = "<img src='images/apps/personal.gif' border='0'>";$AIS = "<img src='images/apps/apps.gif' border='0'>";$GIS = "<img src='images/apps/gamer.gif' border='0'>";$bday1 = mktime(0,0,0,$bdaymonth1,$bdayday1,$bdayyear1);$bdaymonth = date("n", $bday);$bdayday = date("j", $bday);$bdayyear = date("Y", $bday);for($i=1; $i<=12; $i++) {if($bdaymonth == $i) {$tempmonth = date("F", mktime(0,0,0,$i,1,2007));$bdaymonthoptions .= "<option value='$i' selected>$tempmonth</option>";}else {$tempmonth = date("F", mktime(0,0,0,$i,1,2007));$bdaymonthoptions .= "<option value='$i'>$tempmonth</option>";}}for($i=1; $i<=31; $i++) {if($bdayday == $i) {$bdaydayoptions .= "<option value='$i' selected>$i</option>";}else {$bdaydayoptions .= "<option value='$i'>$i</option>";}}$currentyear = date("Y");$finalyear = $currentyear-100;for($i=$currentyear; $i>=$finalyear; $i--) {if($bdayyear == $i) {$bdayyearoptions .= "<option value='$i' selected>$i</option>";}else {$bdayyearoptions .= "<option value='$i'>$i</option>";}}$query = "SELECT * FROM {$dbprefix}timezone ORDER BY timezid ASC";$result = mysql_query($query)	 or die(mysql_error());while($row = mysql_fetch_array($result)){extract($row);$tz_options .= "<option value='$tz' selected>$gmt</option>";}if($dst_options == "Off") { $dst_options .= "<option value='Off' selected>No</option><option value='On'>Yes</option>"; }elseif($dst_options == "On") { $dst_options .= "<option value='Off'>No</option><option value='On' selected>Yes</option>"; }$query = "SELECT * FROM {$dbprefix}gamingstyles ORDER BY gs_id ASC";$result = mysql_query($query)	 or die(mysql_error());$row = mysql_fetch_array($result);extract($row);{$primary_options .= "<option value='$gs_name' selected>$gs_name - $gs_info</option>";$secondary_options .= "<option value='$gs_name' selected>$gs_name - $gs_info</option>";}if($game1 == "CoD: Black Ops") { $gameSELECT = "selected"; }elseif($game1 == "CoD: MW3") { $gameSELECT = "selected"; }elseif($game1 == "Mass Effect 3") { $gameSELECT = "selected"; }elseif($game1 == "CoD: Black Ops 2") { $gameSELECT = "selected"; }if($mic1 == "No") { $micSELECT = "selected"; }elseif($mic1 == "Yes") { $micSELECT = "selected"; }if($gender1 == "Male") { $genderSELECT = "selected"; }elseif($gender1 == "Female") { $genderSELECT = "selected"; }echo "<blockquote><b>READ CAREFULLY</b><br>Please read and take your time when filling out this form. Accurate info on this form will speed up the process. Inaccuate info may result refusal to join or slow processing time.</b><br>If you would like to request joining <b>Clan SwFd</b> please fill out the form below <b>ENTIRLY</b>. Fill out ONE request to join and a member of personnel will contact you if you qualify.</blockquote><br><align='left'><br><b>NOTE that all fields are required. This Application is broken up into 3 sections. Each Section has its own Validator meaning if you miss a something it will tell you to go back and fix it, before continuing on to the next section. You must Complete all 3 sections before it will submit your application to join SwFd. Most of this information is to set-up your basic Profile and removes alot of time between the recruiter and the protential member.</b><br></align><br><br<br><form action='index.php?p=Join' method='post'><table align='center' border='0' cellspacing='0' cellpadding='5' width='600'><tr><td align='center' colspan='6'>$PIS<td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Your PSN/PS3 Screen Name:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='name1' value=\"$name1\" class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>Your screen name will be your username on our site. It must be the exact way its spelled on the PS3/PSN with CAPS, lowercase, and Numbers. It is also the only way we will contact you so spell it right.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Choose a Password:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='password1' value=\"$password1\" class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>This will be used as your password for our site. REMEMBER WHAT YOU PUT HERE! No Special Charaters.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Valid Email Address:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='email1' value=\"$email1\" class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>Used with Retieve Password Feature on our site. Our clan and Staff will never send you SPAM from this Clan.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Location:</td></tr><tr><td align='center' colspan='3' class='apps_main'>State:</td><td align='center' colspan='3' class='main'>Country:</td></tr><tr><td align='center' colspan='3' class='apps_main'><input type='text' name='state1' value=\"$state1\" class='form'></td><td align='center' colspan='3' class='main'><input type='text' name='country1' value=\"$country1\" class='form'></td></tr><tr><td align='center' colspan='3' class='apps_info'>Needed for geographical purposes.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Age (Don't Lie):</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='age1' value=\"$age1\" class='form'></td></tr><tr><td align='center' colspan='6' class='apps_info'>Age is needed for tournament information.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Birthday:</td></tr><tr><td align='center' colspan='6' class='apps_main'><select name='bdaymonth1' class='form'>$bdaymonthoptions</select> <select name='bdayday1' class='form'>$bdaydayoptions</select> <select name='bdayyear1' class='form'>$bdayyearoptions</select></td></tr><tr><td align='center' colspan='6' class='apps_info'>Birthday is needed for Call of Duty: Elite information.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Gender:</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='radio' name= 'gender1' class='form' value='Male' $genderSELECT>Male<input type='radio' name= 'gender1' class='form' value='Female' $genderSELECT>Female</td></tr><tr><td align='center' colspan='6' class='apps_info'> </td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Your TimeZone:</td></tr><tr><td align='center' colspan='3' class='apps_main'><select name='timezone1' class='form'>$tz_options</select></td><td align='center' colspan='3' class='apps_main'><select name='timezone_dst1' class='form'>$dst_options</select></td></tr><tr><td align='center' colspan='3' class='apps_info'>Your timezone is needed so we know what time is it compared to our Staff members time.</td><td align='center' colspan='3' class='apps_info'>Are you currently under Daylight Savings Time?</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>About Me</td></tr><tr><td align='center' colspan='6' class='apps_main'><textarea name='message1' value=\"$message1\" class='form' rows='10' cols='100'></textarea></td></tr><tr><td align='center' colspan='6' class='apps_info'>Tells us about yourself. As the Team Leaders we like to know who is under our leadership on a more personal level not just a hey you level. Also the more we know about you, the smaller chance of a misuderstanding happening.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6'>$GIS<td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Choose Your Main Game</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='radio' name= 'game1' class='form' value='CoD: Black Ops' $gameSELECT>Black Ops<input type='radio' name= 'game1' class='form' value='CoD: MW3' $gameSELECT>CoD: MW3<input type='radio' name= 'game1' class='form' value='Mass Effect 3' $gameSELECT>Mass Effect 3<input type='radio' name= 'game1' class='form' value='CoD: Black Ops 2'$gameSELECT>CoD: Black Ops 2</td></tr><tr><td align='center' colspan='6' class='apps_info'>The game you play most.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Do you currently have a Working Mic?</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='radio' name= 'mic1' class='form' value='No' $micSELECT>No <input type='radio' name= 'mic1' class='form' value='Yes' $micSELECT>YES</td></tr><tr><td align='center' colspan='6' class='apps_info'>You must have a Mic that is currently working.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'></td></tr><tr><td align='center' colspan='6' class='apps_main'></td></tr><tr><td align='center' colspan='6' class='apps_info'></td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Gaming Style:</td></tr><tr><td align='center' colspan='3' class='apps_main'>Primary Style</td><td align='center' colspan='3' class='apps_main'>Secondary Style</td></tr><tr><td align='center' colspan='3' class='apps_main'><select name='pri_style1' class='form'>$primary_options</select></td><td align='center' colspan='3' class='apps_main'><select name='sec_style1' class='form'>$secondary_options</select></td></tr><tr><td align='center' colspan='3' class='apps_info'>Select what is your main gaming style.</td><td align='center' colspan='3' class='apps_info'>Select what is your secondary or alternative gaming style.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_main'><textarea name='gamingstyle1' value=\"$gameingstyle1\" class='form' rows='5' cols='50'></textarea></td></tr><tr><td align='center' colspan='6' class='apps_info'>Describe in detail how do you play.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Gaming Times:</td></tr><tr><td align='center' colspan='6' class='apps_main'><textarea name='gamingtimes1' value=\"$gamingtimes1\" class='form' rows='5' cols='50'></textarea></td></tr><tr><td align='center' colspan='6' class='apps_info'>When do you play the game?</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6'>$AIS<td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Referral?</td></tr><tr><td align='center' colspan='6' class='apps_main'><input type='text' name='refer1' value=\"$refer1\" class='form'></td></td></tr><tr><td align='center' colspan='6' class='apps_info'>What is the Screen Name of who refered you to our site. If it was by a search engine then use the search engine name as the referral.</td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='6' class='apps_titles' bgcolor='#999999'>Previous Clans:</td></tr><tr><td align='center' colspan='6' class='apps_info'>List the past 6 (six) clans you were/are in before applying to SwFd starting with clan 1 as the most recent. If the field is not needed the leave it blank.</td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1:</td><td align='center' colspan='2' class='apps_main'>Clan 2:</td><td align='center' colspan='2' class='apps_main'>Clan 3:</td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1: Tag: <br><input type='text' name='pc_one_tag1' value=\"$pc_one_tag1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 2: Tag: <br><input type='text' name='pc_two_tag1' value=\"$pc_two_tag1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 3: Tag: <br><input type='text' name='pc_three_tag1' value=\"$pc_three_tag1\" class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1: Name: <br><input type='text' name='pc_one_name1' value=\"$pc_one_name1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 2: Name: <br><input type='text' name='pc_two_name1' value=\"$pc_two_name1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 3: Name: <br><input type='text' name='pc_three_name1' value=\"$pc_three_name1\" class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 1: Website: <br><input type='text' name='pc_one_website1' value=\"$pc_one_website1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 2: Website: <br><input type='text' name='pc_two_website1' value=\"$pc_two_website1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 3: Website: <br><input type='text' name='pc_three_website1' value=\"$pc_three_website1\" class='form'></td></tr><tr><td align='center' colspan='6'> </td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4:</td><td align='center' colspan='2' class='apps_main'>Clan 5:</td><td align='center' colspan='2' class='apps_main'>Clan 6:</td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4: Tag: <br><input type='text' name='pc_four_tag1' value=\"$pc_four_tag1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 5: Tag: <br><input type='text' name='pc_five_tag1' value=\"$pc_five_tag1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 6: Tag: <br><input type='text' name='pc_six_tag1' value=\"$pc_six_tag1\" class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4: Name: <br><input type='text' name='pc_four_name1' value=\"$pc_four_name1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 5: Name: <br><input type='text' name='pc_five_name1' value=\"$pc_five_name1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 6: Name: <br><input type='text' name='pc_six_name1' value=\"$pc_six_name1\" class='form'></td></tr><tr><td align='center' colspan='2' class='apps_main'>Clan 4: Website: <br><input type='text' name='pc_four_website1' value=\"$pc_four_website1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 5: Website: <br><input type='text' name='pc_five_website1' value=\"$pc_five_website1\" class='form'></td><td align='center' colspan='2' class='apps_main'>Clan 6: Website: <br><input type='text' name='pc_six_website1' value=\"$pc_six_website1\" class='form'></td></tr><tr><td align='center' colspan='6'> </td></tr><br><tr><td class='titles' align='center' colspan='6' border='2' bordercolor='#000000'><input type='submit' name='submit' value='Re-Submit Application for Review' class='apps_formbutton'></td></tr></table></form>"; }elseif($errors < 1) {echo "<table align='center' width='500' border='0'><tr><td align='left' width='500'>$dispCorrect_Info</td></tr><tr><td align='left' width='500'>$dispError_Info</td></tr><tr><td align='center' width='500'> </td></tr><tr><td align='center' width='500'> </td></tr></table>";echo "<center><blockquote>Thank you for your request! IF you qualify - a member of our Staff will contact you.</blockquote></center>"; $bday1 = mktime(0,0,0,$bdaymonth1,$bdayday1,$bdayyear1);$dateINFO = date("l, F j, Y  g:i A");$query = "INSERT INTO {$dbprefix}requestjoin (name, password, email, state, country, age, bday, gender, timezone, timezone_dst, message, game, mic, pri_style, sec_style, gamingstyle, gamingtimes, refer, daterequested, status, ipnum, pc_one_tag, pc_one_name, pc_one_website, pc_two_tag, pc_two_name, pc_two_website, pc_three_tag, pc_three_name, pc_three_website, pc_four_tag, pc_four_name, pc_four_website, pc_five_tag, pc_five_name, pc_five_website, pc_six_tag, pc_six_name, pc_six_website) VALUES ('$name1', '$password1', '$email1', '$state1', '$country', '$age1', '$bday1', '$gender1', '$timezone1', '$timezone_dst1', '$message1', '$game1', '$mic1', '$pri_style1', '$sec_style1', '$gamingstyle1', '$gamingtimes1', '$refer1', '$dateINFO', '$ip', '$pc_one_tag1', '$pc_one_name1', '$pc_one_website1', '$pc_two_tag1', '$pc_two_name1', '$pc_two_website1', '$pc_three_tag1', '$pc_three_name1', '$pc_three_website1', '$pc_four_tag1', '$pc_four_name1', '$pc_four_website1', '$pc_five_tag1', '$pc_five_name1', '$pc_five_website1', '$pc_six_tag1', '$pc_six_name1', '$pc_six_website1')";$result = mysql_query($query)	 or die(mysql_error()); $query = "INSERT INTO {$dbprefix}temp_members_db (name, password, email, age, bday, gender, timezone, timezone_dst, game, pri_style, sec_style, gamingstyle, gamingtimes) VALUES ('$name1', '$password1', '$email1', '$age1', '$bday1', '$gender1', '$timezone1', '$timezone_dst1', '$game1', '$pri_style1', '$sec_style1', '$gamingstyle1', '$gamingtimes1')";$result = mysql_query($query)	 or die(mysql_error());}} } else {echo "<center><blockquote>The limit for Join Requests has been reached for today.  If you would like to request to join try again tomorrow.</blockquote></center>";}?>

if submiited blank it gives: Checks: ZERO Things Correct JackAss The following errors were found: Referral: Error - Cannot be left Blank (rest of code to re-submit app) i know i am missing a piece of code that solves it.

Edited by Nuker_Viper
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...