Advertisement
Guest User

Untitled

a guest
May 9th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.28 KB | None | 0 0
  1. <?php
  2. //Connect to the mysql database.
  3. $mysql_username="usher_signup";
  4. $mysql_password="abc123";
  5. $link = mysql_connect('localhost', $mysql_username, $mysql_password);
  6. if (!$link) {
  7.     die('Could not connect: ' . mysql_error());
  8. }
  9. echo 'Connected successfully to MySQL<br>';
  10. //select the database
  11. mysql_select_db("signup", $link);
  12. //check each table and see if there are six entries.
  13.  
  14. ?>
  15. <html>
  16. <head>
  17. <title>
  18. LACLT - Usher Sign Up Sheet
  19. </title>
  20. <link rel="stylesheet" type="text/css" href="style.css">
  21. </head>
  22. <body>
  23. <form action="index2.php" method="post">
  24. Full Name: <input type="text" name="first_name">
  25. <br />
  26. Have You Ushered for Us Before?:
  27. <br />
  28. <input type="radio" name="xp" value="yes" checked> Yes
  29. <input type="radio" name="xp" value="no"> No
  30. <br />
  31. Date of Show:
  32. <select name="date">
  33. <option value="per1">1-THU/6-18-09/7:30PM</option>
  34. <option value="per2">1-FRI/6-19-09/8:00PM</option>
  35. <option value="per3">1-SAT/6-20-09/8:00PM</option>
  36. <option value="per4">1-SUN/6-21-09/2:00PM</option>
  37. <option value="per5">1-THU/6-25-09/7:30PM</option>
  38. <option value="per6">1-FRI/6-26-09/8:00PM</option>
  39. <option value="per7">1-SAT/6-27-09/8:00PM</option>
  40. <option value="per8">1-SUN/6-28-09/2:00PM</option>
  41. </select>
  42. <br />
  43. <input type="submit">
  44. </form>
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement