Advertisement
Guest User

Untitled

a guest
May 16th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. include_once 'dbConfig.php';
  3. ?>
  4. <html>
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>Just another website</title>
  8.  
  9. <?php
  10. echo '<link href="site.css" rel="stylesheet" type="text/css">' ;
  11.  
  12. if(isset($_POST['btn-save']))
  13. {
  14.  
  15. $username= $_POST['username'];
  16. $password = $_POST['password'];
  17. $country = $_POST['country'];
  18.  
  19. $sql_query = "INSERT INTO users(username,password,country) VALUES('$username','$password','$country')";
  20. mysql_query($sql_query);
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement