This is my issue...This is part of a bigger script i am working on and what this part of the coding does is it looks to see if the recruiting status for the site is either open or closed...now as you can see if it is closed it is supposed to show that message and if it is open it is supposed to shot the "Join Us" form...now it all works great except for the fact that i want to be able to use a "Form Validator" that will have a pop-up for leaving a feild blank or invalid email format or leaving the checkbox blank...but the issue im having is that i cannot add any code into the "echo ' " with it coming up with syntax errors...if someone could please help me with this you would make me very happy...if you think you got it either send it to me on my msn: [no contact details as per admin's rules]...or just post it on here as i will be watching for replies.
Thanks Guys
/*
BEGINS for JoinUS
*/
if($_GET['view'] == "JoinUs") {
require("functions.php");
$query = @mysql_query("SELECT recruiting, security_status, total FROM status");
$row_status = mysql_fetch_array($query);
if($row_status['total'] >= 350 || $row_status['recruiting'] == 1) {
echo' <font color="#76A5D5" size="4" face="verdana"><b>Recruiting Is Closed!</b></font>';
} else {
echo '
?>
<form method="post" name="JoinRequest" action="sendit.php">
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>"/>
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>"/>
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>"/>
<br />
<b><font color="#76A5D5" size="2" face="verdana">Socom Name: </font></b>
<input name="visitor" type="text" id="visitor" size="35"/>
<br />
<br />
<b><font color="#76A5D5" size="2" face="verdana">Email Address:</font></b>
<input type="text" name="visitormail" size="35"/>
<br />
<br />
<b><font color="#76A5D5" size="2" face="verdana">Version Trying For:</font></b>
<select name="attn" size="1">
<option value=" Socom1 ">Socom </option>
<option value=" Socom2 ">Socom 2 </option>
<option value=" Socom3 ">Socom 3 </option>
<option value=" Socom4 ">Combined Assult </option>
</select>
<br /><br />
<input type="checkbox" name="notes" value="checkbox"/>
<font color="#76A5D5" size="1" face="verdana">I Have Read And Agree To Follow The <strong><a href="index.php?view=Rules">Clan Rules</font></a></strong><br />
<br />
<input type="submit" value="Submit">
</form>
<font color="#FF0000">**</font><font color="#76A5D5" size="1" face="verdana">All Applications will be reviewed in a timely manner. Any questions or concerns belong on our <b><a href="forum/index.php">Forum</a></b></font><br />
<br />';
}
include('footer.php');
}
/*
ENDS for HowTojoin
*/