Jump to content

IdioticMe

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

IdioticMe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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
  2. This is my first captcha script...it has 2 files, check.php and insert.php It works fine but I would like to hear your opinion what can I do to make it better? Is there any way that I can add random images ? Here is insert.php <html> <body> <form action="check.php" method="post"> <img src="captcha.jpg"/> Insert captcha: <input type="text" name="cap"/> <input type="submit" value="submit"/> </form> </body> </html> here is check.php <html> <body> <?php $cap= "flirc"; if ($_POST["cap"]==$cap) echo "Captcha is right!"; else echo " Captcha is wrong! "; ?> </body> </html> It is pretty basic, I know You can see it in action here
  3. Hello guys, I'm new here. My name is Boris and I'm 16. I know HTML/CSS and I've been learning web designing since I was 12, so right now I'm learning PHP 'cause I want to create some cool scripts or web sites with awesome features. I'm going to high school where my oriented subject is programming. I'm currently learning Pascal, and next year, C++..that's it for now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.