Acelasi lucru scrie si pe prima pagina de pe php.net, dar trebuie sa aiba si ochi ca sa vada si minte in care sa se stocheze informatia. Mai are timp sa creasca :-j!UL!@N wrote:ia si injural pe ASTA ca spune minciuni
PHP - nedumerire [ rezolvat ]
Moderators: Moderatori ajutatori, Moderatori
-
- Programator eXtream
- Posts: 853
- Joined: 29 May 2009, 19:13
- Detinator Steam: Da
- CS Status: Trag cu praştia !
- Reputatie: Fost programator web eXtreamCS
Administrator tehnic
Sysadmin - Location: Bucureşti
- Has thanked: 2 times
- Been thanked: 342 times
I'm not antisocial, I'm just not user friendly.
⎯ retired
⎯ retired
-
- Membru, skill +1
- Posts: 139
- Joined: 08 Mar 2011, 14:58
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Been thanked: 5 times
- Contact:
pentru login simplu fa ceva de genu
o simpla pagina de login :) ..
Code: Select all
$user = 'uniqszc';
$pass = 'password';
if(isset($_POST[login]))
{
if($user == $_POST[user] && $pass == $_POST[pass])
{
echo 'E ok, te-ai logat cu succes';
$login = true;
}
else
{
echo 'Userul sau parola nu sunt bune';
}
}
else
{
echo '<form action="'.$_SERVER['php_self'].'" method="post"><input type="text" name="user" /> - user</br><input type="password" name="pass" /> - password</br></br><input type="submit" name="login" value="logheaza-ma" /></form>
}
-
- Information
-
Who is online
Users browsing this forum: A k c 3 n 7, Bing [Bot], csredstars, Mail.RU [Bot], Petal [Bot] and 425 guests