Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Ergasia</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <body>
  8. <br />
  9. <br />
  10. <br />
  11. <br />
  12. <?php
  13.  
  14. /*if ($_POST["onoma"] != "" && $_POST["epitheto"] != "" && $_POST["ergasia"] != "" && $_POST["diefthinsi"] != "" && $_POST["email"] != "" ){ */
  15.  
  16. mysqli_report(MYSQLI_REPORT_STRICT);
  17.  
  18. try {
  19. $con = new mysqli('localhost', 'ergasia', 'dokimastiko1234') ;
  20. } catch (Exception $e ) {
  21. echo "Service unavailable";
  22. echo "message: " . $e->message;
  23. exit;
  24. }
  25. /*$con = mysql_connect("localhost", "ergasia", "dokimastiko1234") or
  26. die("Connection Failed! <br />");
  27.  
  28. mysql_select_db("info", $con) or
  29. die("Connection DB Failed! <br />");
  30.  
  31. $query = "INSERT INTO info VALUES ( '" . $_POST["onoma"] . "',
  32. '" . $_POST["epitheto"] . "',
  33. '" . $_POST["ergasia"] . "',
  34. '" . $_POST["diefthinsi"] . "',
  35. '" . $_POST["email"] . "');";
  36. }*/
  37. ?>
  38.  
  39. <form name="newinfo" action="firstpage.php" method="post" onsubmit="return validate()>
  40. <fieldset style="border:0px;">
  41. <legend>Person</legend><br /><br /><br />
  42. <div style="width:400px; float:left">
  43. <label for "FN">Όνομα</label><br />
  44. <label for "SN">Επώνυμο</label><br />
  45. <label for "WP">Εργασία<label><br />
  46. <label for "AD">Διεύθυνση</label><br />
  47. <label for "EM">E-mail</label><br />
  48. </div>
  49. <div style="width:400px; float:left">
  50. <input = "text" name="onoma" id="FN" /><br />
  51. <input = "text" name="epitheto" id="LN" /><br />
  52. <input = "text" name="ergasia" id="WP" /><br />
  53. <input = "text" name="diefthinsi" id="AD" /><br />
  54. <input = "textarea" name="email" id="EM" /><br /><br />
  55. <input type="submit" value="Send" />
  56. </div>
  57. </fieldset>
  58. </form>
  59. <div style="clear:both; text-align: center;" >
  60.  
  61.  
  62. </div>
  63. </body>
  64. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement