Advertisement
Guest User

Untitled

a guest
Jun 16th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5.  <?php
  6. $servername = "localhost";
  7. $username = "root";
  8. $password = "ofir321";
  9.  
  10.  
  11. // Create connection
  12. $conn = mysqli_connect($localhost, $name, $password);
  13.  
  14. // Check connection
  15. if (!$conn) {
  16.     die("Connection failed: " . mysqli_connect_error());
  17. }else {
  18.         echo "Connected successfully";
  19. }
  20.  
  21.  mysqli_close($conn);  
  22. ?>
  23.  
  24. </body>
  25. </html>
  26.  
  27.  <!DOCTYPE html>
  28. <html>
  29. <head>
  30.  
  31. <title>Page Title</title>
  32. </head>
  33.  
  34.  
  35. <body>
  36. <h1 style="background-color:DodgerBlue;">checklist</h1>
  37.  
  38.  
  39. <form action="connect.php" method="post">
  40. Name: <input type="text" name="name"><br>
  41. <input type="submit">
  42. </form>
  43.  
  44. </body>
  45.  
  46.  
  47.  
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement