I am working on a php script to validate signups, and i am getting errors and i don't know what to do about them. Could someone please help? the script is below. there is an error in line 20, but i don;t know what...
<?PHP
$types_to_register = array('GET','POST','COOKIE','SESSION','SERVER');
foreach ($types_to_register as $type) {
$arr = ${'HTTP_' . $type . '_VARS'};
if (count($arr) > 0) {
extract($arr, EXTR_OVERWRITE);
}
}
if($name && $username && $password1 == $password2 && $usage && $val1 == '9789' && $val2 == '9789' && $agree) {
$name_m = "$name . ' is the user's real name'";
$username_m = "$username . 'is the users prefered username'";
$password_m = "$password . ' is the password<br>'";
$usage_m = "$usage . ' is how this applicant wishes to use their space'";
$validation_m = "'this applicant has read the disclaimer, and agrees'";
$comments_m = "$comments . 'this is the comments, may be null!'";
$whatisexpected = "$webhost_expect . 'this is what the user expects from a webhost, may be null!'";
$body = "$name_m . '<br>' . $username_m . '<br>' . $password_m . '<br>' . $usage_m . '<br>' . $validation_m . '<br>' . $comments_m . '<br>' . $whatisexpected";
echo $body;
} else {
echo '<font color='red'>ATTENTION: One or more required values remian unset <b> or you didn't read the disclaimer </b>, or your passwords don't match. Please go back and fix them or read the disclaimer!!!';
}
?>
The error is an expected , or ; , i think.