IdioticMe Posted December 28, 2011 Share Posted December 28, 2011 I'm trying to create VIP zone, but I need to check if user has input correct username and password....I tried to make it work this way HTML <form action="vipchat.php" method="post" /> Korisnicko ime: <input type="text" name="ime"/> Lozinka: <input type="password" name="lozinka"/> <input type="submit" value="Uloguj se"/> </form> php <?php $imet = "komp"; $sifrat = "racun"; if ($_POST["ime"]==$imet)and($_POST["lozinka"]==$sifrat) echo "Tacno je"; else echo "Netacno je"; ?> But it gives me this error Parse error: syntax error, unexpected T_LOGICAL_AND in C:\AppServ\www\adm\vipchat.php on line 16 Quote Link to comment https://forums.phpfreaks.com/topic/253962-option-and/ Share on other sites More sharing options...
KevinM1 Posted December 28, 2011 Share Posted December 28, 2011 You're missing a ) at the end of your if-conditional Quote Link to comment https://forums.phpfreaks.com/topic/253962-option-and/#findComment-1301888 Share on other sites More sharing options...
IdioticMe Posted December 28, 2011 Author Share Posted December 28, 2011 Thank you soo much Quote Link to comment https://forums.phpfreaks.com/topic/253962-option-and/#findComment-1301891 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.