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 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 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 Link to comment https://forums.phpfreaks.com/topic/253962-option-and/#findComment-1301891 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.