Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="localhost";
- $username="ramirocal";
- $password="";
- $db_name="my_ramirocal";
- $tbl_name="blog_members";
- mysql_connect("$host", "$username", "$password") or die("Eh e chi cazzo sà che è successo?!?");
- mysql_select_db("$db_name") or die("Eh e chi cazzo sà che è successo?!?");
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" href="css/bootstrap.css">
- <link rel="stylesheet" href="css/form.css">
- <script type="text/javascript">
- function myMattia(){
- var x = document.getElementById("conchiglia").value;
- var y = document.getElementById("demo").value;
- var z ="Hai sbagliato a reinserire la password! Riprova.";
- function myFunction(){
- if (x===y) {
- document.getElementById("pesce").innerHTML = "Ok";
- }else{
- document.getElementById("pesce").innerHTML = z;
- }
- }
- var a =document.getElementById("spiaggia");
- a.addEventListener("mouseover", myFunction);
- a.addEventListener("click", myFunction);
- a.addEventListener("mouseout", myFunction);
- }
- </script>
- </head>
- <body onload="myMattia">
- <div class="titlex">
- <h2>Registration</h2>
- </div>
- <form>
- <div class="form-group" style="margin-left:20px; margin-top:15px">
- <label>Username</label>
- <input type="text" class="form-control" name="username" placeholder="Username" style="width:200px">
- </div>
- <div class="form-group" style="margin-left:20px">
- <label>Password</label>
- <input id="conchiglia" type="password" class="form-control" name="password" placeholder="Password" style="width:200px">
- </div>
- <div class="form-group" style="margin-left:20px">
- <label>Reinserisci Password</label>
- <input id="demo" type="password" class="form-control" name="ripassword" placeholder="Reinserisci Password" style="width:200px">
- </div>
- <button id="spiaggia" type="submit" name="submit" class="btn btn-default" style="margin-left:20px; margin-bottom:15px">Submit</button>
- </form>
- <div class="minciate">
- <p id="pesce"></p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement