SHARE
TWEET

Untitled

a guest Apr 18th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4.     <head>
  5.             <meta charset="utf-8">
  6.         <title>
  7.             Titlu
  8.         </title>
  9.     </head>
  10.     <body>
  11.         <form action="coca.php" method="GET">
  12.             First name: <br>
  13.             <input type="text" name="nume"> <br>
  14.             Last name: <br>
  15.             <input type="text" name="lastname"> <br>
  16.             <input type="submit" value="Coca">
  17.            
  18.            <p> Gender: </p>
  19.             <p> Male
  20.             <input type="radio" name="1" value="Male">
  21.         </p>
  22.             <p> Female
  23.             <input type="radio" name="1" value="Female">
  24.         </p>
  25.         <p>
  26.             <p> Passions:
  27.                 <br> Running    <input type="checkbox" name="check" value="Running">
  28.         </p>
  29.         <?php
  30. $servername = "localhost";
  31. $username = "root";
  32.  
  33.  
  34. // Create connection
  35. $conn = new mysqli($servername, $username);
  36.  
  37. // Check connection
  38. if ($conn->connect_error) {
  39.     die("Connection failed: " . $conn->connect_error);
  40. }
  41. echo "Connected successfully";
  42. ?>
  43.         </form>
  44.        
  45.            
  46.     </body>
  47. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top