Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Ergasia</title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <br />
- <br />
- <br />
- <br />
- <?php
- /*if ($_POST["onoma"] != "" && $_POST["epitheto"] != "" && $_POST["ergasia"] != "" && $_POST["diefthinsi"] != "" && $_POST["email"] != "" ){ */
- mysqli_report(MYSQLI_REPORT_STRICT);
- try {
- $con = new mysqli('localhost', 'ergasia', 'dokimastiko1234') ;
- } catch (Exception $e ) {
- echo "Service unavailable";
- echo "message: " . $e->message;
- exit;
- }
- /*$con = mysql_connect("localhost", "ergasia", "dokimastiko1234") or
- die("Connection Failed! <br />");
- mysql_select_db("info", $con) or
- die("Connection DB Failed! <br />");
- $query = "INSERT INTO info VALUES ( '" . $_POST["onoma"] . "',
- '" . $_POST["epitheto"] . "',
- '" . $_POST["ergasia"] . "',
- '" . $_POST["diefthinsi"] . "',
- '" . $_POST["email"] . "');";
- }*/
- ?>
- <form name="newinfo" action="firstpage.php" method="post" onsubmit="return validate()>
- <fieldset style="border:0px;">
- <legend>Person</legend><br /><br /><br />
- <div style="width:400px; float:left">
- <label for "FN">Όνομα</label><br />
- <label for "SN">Επώνυμο</label><br />
- <label for "WP">Εργασία<label><br />
- <label for "AD">Διεύθυνση</label><br />
- <label for "EM">E-mail</label><br />
- </div>
- <div style="width:400px; float:left">
- <input = "text" name="onoma" id="FN" /><br />
- <input = "text" name="epitheto" id="LN" /><br />
- <input = "text" name="ergasia" id="WP" /><br />
- <input = "text" name="diefthinsi" id="AD" /><br />
- <input = "textarea" name="email" id="EM" /><br /><br />
- <input type="submit" value="Send" />
- </div>
- </fieldset>
- </form>
- <div style="clear:both; text-align: center;" >
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement