I think this is quite simple I'm trying to hide a form if an event is full, this is my code:
var_dump($errorflag);
var_dump($registered , $limit);
if ($registered>$limit) {
$errorflag="1";
}
event=$event&eventlocation=$eventlocation&eventdate=$eventdate")
var_dump($errorflag);
and the code to hide the form:
?php if ($errorflag=="1") {
echo "style=\'display:none;\'";
};
?>
There are several syntax problems here. This line is ambiguous:
event=$event&eventlocation=$eventlocation&eventdate=$eventdate")
There's no $ before event - is that a variable? Also the line does not end with a ; but has a trailing ) that doesn't match any opening (.
Finally, this line:
?php if ($errorflag=="1") {
echo "style=\'display:none;\'";
};
Should be:
<?php if ($errorflag=="1") {
echo "style=\'display:none;\'";
}
?>