Page 1 of 1

parse error, unexpected T_IF

Posted: Sun Jan 09, 2005 12:51 pm
by JKwingsfan
Let's start by saying I am not a huge fan of PHP. I don't like it, I love JavaScript, but it would be impossible to do what I need to do with JavaScript. I have this stupid error, parse error, unexpected T_IF, I don't know what it means php.net isn't much help, I am in need of assistance :evil: Here is the line of code its P & M'ing about:

if ($password == $confirm) {
print "The second typing of your password does not match your first";
}

I have made sure that the variables are defined, I have tried writing the if statement every single possible different way, IT DOESN'T WORK :evil: :!: What the hell does it mean and how do i fix it?

Posted: Mon Jan 10, 2005 8:43 pm
by magicrobotmonkey
Post some code from before the if statement, thats where the error is.

Posted: Mon Jan 10, 2005 9:03 pm
by protokol
Also, saying you hate PHP might not make people here want to help answer your questions.

Posted: Mon Jan 10, 2005 9:05 pm
by d3ad1ysp0rk
Nah, I just find it amusing since PHP is supier in most ways to JS ;) lol

Posted: Mon Jan 10, 2005 10:05 pm
by feyd
might have been nice to post this is the proper forum too.. Moved to PHP - Code.

Posted: Tue Jan 11, 2005 9:06 am
by n00b Saibot
i am 100% sure you have forgotten to put a semi-colon on the line above this statement. check it and say what happens :!: