Guest User

Untitled

a guest
Dec 25th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2. mysql_connect('localhost', 'root', '');//conecta com o bd tio
  3. function Login(){ //uma funçao login
  4. $user = $_POST['user'];//pega o valor do formulario post..
  5. $password = $_POST['password'];
  6. $sub = $_POST['logar'];
  7.  
  8. if($sub){//verifica se o botao foi pressionado e depois executa os comando abaixo
  9. setcookie('user_localhost', $user);
  10. setcookie('password', $password);
  11.  
  12. }
  13. }
  14. ?>
Add Comment
Please, Sign In to add comment