todayme Posted March 6, 2007 Share Posted March 6, 2007 What the f... am I doing wrong? if($authenticate!=$password){ exit(); ) Quote Link to comment Share on other sites More sharing options...
karthikeyan_coder Posted March 6, 2007 Share Posted March 6, 2007 echo ($authenticate); and echo($password) and see the if() Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted March 6, 2007 Share Posted March 6, 2007 If ($call==$session[nsername]){ echo "username ok"} esle {echo "invalid username"} Ur statement style is right. Quote Link to comment Share on other sites More sharing options...
simcoweb Posted March 6, 2007 Share Posted March 6, 2007 Are you getting an error? If so, please post. I think, if you are, it's because you have a right parentheses instead of a curly bracket to close your if statement. Yours: if($authenticate!=$password){ exit(); ) Correct: if($authenticate!=$password){ exit(); } Quote Link to comment Share on other sites More sharing options...
todayme Posted March 6, 2007 Author Share Posted March 6, 2007 Yes that was the problem thanks heaps Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.