PHP Parse error help please?

jack

New member
I can't seem to shake this error, what seems to be the issue here?
I get a: Parse error: parse error, expecting `';'' on the for() loop line.

$Invalid = array("delete", "update", "union", "insert", "drop", "http", "--");

function checkField($text){

for( i=0; i < count($Invalid); i++){
if ($text == $InvalidWords){

echo "Nope";
}
else {

echo "Hello :D";
}
}

}
I know the $Invalid and $InvalidWords don't match up, but even if I fix that, I get the same msg
 
Back
Top