Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <HTML>
- <HEAD>
- <META charset="utf-8">
- <TITLE> Domino's Pizza - Home </TITLE>
- <link href="style.css" rel="stylesheet" type="text/css"/>
- </HEAD>
- <BODY>
- <header class="cf">
- <div class="wrapper">
- <div id="logo">
- <img src="logo.png" alt="dominos logo"/>
- </div>
- <div id="login">
- <form>
- <table>
- <tr>
- <td> <input type="text" placeholder="email"/></td>
- <td> <input type="password" placeholder="κωδικός"/></td>
- <td><input type="submit" value="Σύνδεση"/></td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- </header>
- <main class="wrapper cf">
- <section>
- <img src="pizza.jpg" alt="pizza"/>
- </section>
- <div id="eggrafi">
- <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="POST">
- <table>
- <tr><th colspan="2"> Εγγραφή </th> </tr>
- <tr>
- <td> <input type="text" placeholder="To όνομά σου" name="cname"/></td>
- <td> <input type="text" placeholder="To επίθετό σου" name="csurname"/></td>
- </tr>
- <tr>
- <td colspan="2"><input type="email" placeholder="To email σου" name="cemail"/></td>
- </tr>
- <tr>
- <td colspan="2"><input type="pasword" placeholder="Ο κωδικός σου" name="cpassword"/></td>
- </tr>
- <tr>
- <td colspan="2"><input type="pasword" placeholder="Επαλήθευση κωδικού" name="epassword"/></td>
- </tr>
- <tr>
- <td colspan="2"><input type="submit" value="Εγγραφή" name="submit"/></td>
- </tr>
- </table>
- </form>
- <?php
- if (isset($_POST["submit"])){
- include ("config.php");
- $cname = $_POST["cname"];
- $csurname = $_POST["csurname"];
- $cemail = $_POST["cemail"];
- $cpassword = $_POST["cpassword"];
- $epassword = $_POST["epassword"];
- if ($cpassword!=$epassword) {
- echo "Oι κωδικοί σας δεν ταιριάζουν";
- }
- else {
- $sql = "INSERT INTO customer (cname,csurname,cemail,cpassword)
- VALUES ( '$cname', '$csurname', '$cemail', '$cpassword' )" ;
- $result = $conn -> query($sql);
- header("Location:order.php");
- }
- }
- ?>
- </div>
- </main>
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement