Advertisement
Guest User

Untitled

a guest
Aug 9th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2.    
  3.    
  4.    
  5.    
  6.    
  7.    
  8.    
  9.    
  10.    
  11.    
  12.    
  13.     /*
  14.     *
  15.     *
  16.     *
  17.     * PERMISSION OF THE REGISTRATER:
  18.     * 'user'
  19.     *
  20.     *
  21.     *
  22.     *
  23.     *
  24.     */
  25.     $jog = "User";
  26.    
  27.    
  28.     //sql connect:
  29.    
  30.     include "sql/config.php";
  31.    
  32.     /*
  33.     * Getting the variables_:
  34.     */
  35.    
  36.     $username = $_POST['felhasznalonev'];
  37.     $password = $_POST['password'];
  38.     $email = $_POST['email'];
  39.     $password = ($_POST['password']);
  40.    
  41.     $hash = hash("haval128,4", $_POST['password']);
  42.    
  43.     $insert = 'INSERT into users(email,password,jog) VALUES("'.$email.'","'.$hash.'","'.$jog.'")';
  44.     $sql->query($insert);
  45.    
  46.    
  47.     header("Location: rendelve.php");
  48.     exit;
  49.    
  50.    
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement