Advertisement
Guest User

Untitled

a guest
May 26th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.87 KB | None | 0 0
  1. <?php
  2. session_start();
  3. include 'extras/dbc.php';
  4. include 'scripts/functions.php';
  5.  
  6. if (isset($_POST['register'])) {
  7.         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'])
  8.         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'])) {
  9.        
  10.         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);
  11.         } else {
  12.         ?> <p class="error">Populate all the fucking fields.</p> <?php
  13.         }
  14.     }
  15.  
  16. ?>
  17.  
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html>
  20. </head>
  21. <title>Name woop</title>
  22. <link rel="stylesheet" href="style.css" type="text/css" />
  23. </head>
  24. <body>
  25.  
  26. <div id="nav_bar">
  27.     <div id="actual">
  28.     <div id="logo"></div>
  29.    
  30.     <div id="navi">
  31.             <ul>
  32.                 <li><a href="#">Home</a></li>
  33.                 <li><a href="#">About</a></li>
  34.                 <li><a href="#">Shop</a></li>
  35.                 <li><a href="#">Contact</a></li>
  36.             </ul>
  37.             </div>
  38.     </div>
  39. </div>
  40.  
  41.     <div id="container">
  42.            
  43.            
  44.                     <div id="content">
  45.                         <?php include 'scripts/loginscript.php'; ?>
  46.                         <div id="lr">a
  47.                         <div class="hold"><h3>Login or</h3> <a href="#" id="sup"><h3 class="su">Sign up</h3></a></div>
  48.                             <div class="login">
  49.                             <h3></h3>
  50.                                 <form action="login.php" method="POST">
  51.                                     <input type="text" class="formnormal" name="email" placeholder="Email" maxlength="80" />
  52.                                     <input type="password" class="formnormal" name="password" placeholder="Password" maxlength="40" />
  53.                                     <input type="submit" class="formnormal" name="login" value="Login" />
  54.                                 </form>
  55.                             </div>
  56.                            
  57.                             <div class="error"></div>
  58.                            
  59.                             <div class="register">
  60.                             <h3></h3>
  61.                                 <form action="" method="POST" id="hi">
  62.                                     <input type="text" class="formnormal" name="first_name" placeholder="First Name" maxlength="20" />
  63.                                     <input type="text" class="formnormal" name="last_name" placeholder="Last Name" maxlength="20" />
  64.                                     <input type="text" class="formnormal" name="email" placeholder="Email" maxlength="80" />
  65.                                     <input type="password" class="formnormal" name="password" placeholder="Password" maxlength="40"/>
  66.                                     <input type="password" class="formnormal" name="password_repeat" placeholder="Password again" maxlength="40"/>
  67.                                     <div class="dropdown">
  68.                                     <?php include 'extras/country.php'; ?>
  69.                                     </div>
  70.                                     <input type="text" class="formnormal" name="city" placeholder="City" maxlength="30" />
  71.                                     <input type="text" class="formnormal" name="zip_code" placeholder="Zip Code" maxlength="5" />
  72.                                     <input type="text" class="formnormal" name="billing_address" placeholder="Billing Address" maxlength="40" />
  73.                                     <input type="text" class="formnormal" name="mobile_number" placeholder="Mobile" maxlength="20" /><br/><br/>
  74.                                     <input type="checkbox" class="formnormal" name="terms_accept" value="accept">I accept the <a href="terms.html">terms of use.</a><br/>
  75.                                     <input type="submit" class="formnormal" name="register" value="Register" />
  76.                                 </form>
  77.                             </div>
  78.                            
  79.                            
  80.                         </div>
  81.                     </div>
  82.                
  83.                
  84.         <div id="footer">
  85.             footer osv
  86.         </div>
  87.        
  88.     </div>
  89.    
  90.     <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  91.     <script type="text/javascript" src="js/lol.js"></script>
  92. </body>
  93. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement