Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include 'extras/dbc.php';
- include 'scripts/functions.php';
- if (isset($_POST['register'])) {
- if (isset($_POST['first_name'], $_POST['last_name'], $_POST['email'], $_POST['password'], $_POST['password_repeat'], $_POST['country'], $_POST['city'], $_POST['zip_number'], $_POST['billing_address'], $_POST['mobile_number'])
- and !empty($_POST['first_name']) and !empty($_POST['last_name']) and !empty($_POST['email']) and !empty($_POST['password']) and !empty($_POST['password_repeat']) and !empty($_POST['country']) and !empty($_POST['city']) and !empty($_POST['zip_code']) and !empty($_POST['billing_address']) and !empty($_POST['mobile_number'])) {
- register_user($_POST['first_name'], $_POST['last_name'], $_POST['email'], $_POST['password'], $_POST['password_repeat'], $_POST['country'], $_POST['city'], $_POST['zip_code'], $_POST['billing_address'], $_POST['mobile_number'], $dbh);
- } else {
- ?> <p class="error">Populate all the fucking fields.</p> <?php
- }
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- </head>
- <title>Name woop</title>
- <link rel="stylesheet" href="style.css" type="text/css" />
- </head>
- <body>
- <div id="nav_bar">
- <div id="actual">
- <div id="logo"></div>
- <div id="navi">
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#">About</a></li>
- <li><a href="#">Shop</a></li>
- <li><a href="#">Contact</a></li>
- </ul>
- </div>
- </div>
- </div>
- <div id="container">
- <div id="content">
- <?php include 'scripts/loginscript.php'; ?>
- <div id="lr">a
- <div class="hold"><h3>Login or</h3> <a href="#" id="sup"><h3 class="su">Sign up</h3></a></div>
- <div class="login">
- <h3></h3>
- <form action="login.php" method="POST">
- <input type="text" class="formnormal" name="email" placeholder="Email" maxlength="80" />
- <input type="password" class="formnormal" name="password" placeholder="Password" maxlength="40" />
- <input type="submit" class="formnormal" name="login" value="Login" />
- </form>
- </div>
- <div class="error"></div>
- <div class="register">
- <h3></h3>
- <form action="" method="POST" id="hi">
- <input type="text" class="formnormal" name="first_name" placeholder="First Name" maxlength="20" />
- <input type="text" class="formnormal" name="last_name" placeholder="Last Name" maxlength="20" />
- <input type="text" class="formnormal" name="email" placeholder="Email" maxlength="80" />
- <input type="password" class="formnormal" name="password" placeholder="Password" maxlength="40"/>
- <input type="password" class="formnormal" name="password_repeat" placeholder="Password again" maxlength="40"/>
- <div class="dropdown">
- <?php include 'extras/country.php'; ?>
- </div>
- <input type="text" class="formnormal" name="city" placeholder="City" maxlength="30" />
- <input type="text" class="formnormal" name="zip_code" placeholder="Zip Code" maxlength="5" />
- <input type="text" class="formnormal" name="billing_address" placeholder="Billing Address" maxlength="40" />
- <input type="text" class="formnormal" name="mobile_number" placeholder="Mobile" maxlength="20" /><br/><br/>
- <input type="checkbox" class="formnormal" name="terms_accept" value="accept">I accept the <a href="terms.html">terms of use.</a><br/>
- <input type="submit" class="formnormal" name="register" value="Register" />
- </form>
- </div>
- </div>
- </div>
- <div id="footer">
- footer osv
- </div>
- </div>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
- <script type="text/javascript" src="js/lol.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement