Jump to content
  • 0

pomoc $_POST


Bartman

Dotaz

ahoj nefunguje mi toto

 

                            <?php
                               $file = fopen('deadlist.txt', "r");
                               $password = fread($file, 2);
                               $login = fread($file, 1);
                               $myusername = $_POST['username']; 
                               $mypassword = $_POST['password'];
                               if($login == $myusername)
                               {
                                   if($password == $mypassword)
                                   {
                                       echo "

";
                                   } else echo "Špatné heslo 





";
                               } else echo "Špatný login 





";
                               fclose($file);
                           ?>

 

kod stranky ze ktere beru $_POST

 

		
Přihlašení









 

Melo by to cloveka prihlasit na zaklade toho textaku , ale nejak to nejde

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

Vis co je divny? :d ze kdyz udelam jen

 

                            <?php
                               $file = fopen('deadlist.txt', "r");
                               $password = fread($file, 2);
                               $login = fread($file, 1);
                               echo $login;
                               fclose($file);
                           ?>

 

tak to vypise jen ... r :d coz je divne :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...