Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <?php
  2. $host="localhost";
  3. $username="ramirocal";
  4. $password="";
  5. $db_name="my_ramirocal";
  6. $tbl_name="blog_members";
  7.  
  8. mysql_connect("$host", "$username", "$password") or die("Eh e chi cazzo sà che è successo?!?");
  9. mysql_select_db("$db_name") or die("Eh e chi cazzo sà che è successo?!?");
  10. ?>
  11.  
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <meta charset="utf-8">
  16. <link rel="stylesheet" href="css/bootstrap.css">
  17. <link rel="stylesheet" href="css/form.css">
  18. <script type="text/javascript">
  19. function myMattia(){
  20. var x = document.getElementById("conchiglia").value;
  21. var y = document.getElementById("demo").value;
  22. var z ="Hai sbagliato a reinserire la password! Riprova.";
  23. function myFunction(){
  24. if (x===y) {
  25. document.getElementById("pesce").innerHTML = "Ok";
  26. }else{
  27. document.getElementById("pesce").innerHTML = z;
  28. }
  29. }
  30. var a =document.getElementById("spiaggia");
  31. a.addEventListener("mouseover", myFunction);
  32. a.addEventListener("click", myFunction);
  33. a.addEventListener("mouseout", myFunction);
  34. }
  35. </script>
  36. </head>
  37. <body onload="myMattia">
  38. <div class="titlex">
  39. <h2>Registration</h2>
  40. </div>
  41. <form>
  42. <div class="form-group" style="margin-left:20px; margin-top:15px">
  43. <label>Username</label>
  44. <input type="text" class="form-control" name="username" placeholder="Username" style="width:200px">
  45. </div>
  46. <div class="form-group" style="margin-left:20px">
  47. <label>Password</label>
  48. <input id="conchiglia" type="password" class="form-control" name="password" placeholder="Password" style="width:200px">
  49. </div>
  50. <div class="form-group" style="margin-left:20px">
  51. <label>Reinserisci Password</label>
  52. <input id="demo" type="password" class="form-control" name="ripassword" placeholder="Reinserisci Password" style="width:200px">
  53. </div>
  54. <button id="spiaggia" type="submit" name="submit" class="btn btn-default" style="margin-left:20px; margin-bottom:15px">Submit</button>
  55. </form>
  56. <div class="minciate">
  57. <p id="pesce"></p>
  58. </div>
  59. </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement