Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. <?php
  2.  
  3. $host="localhost";
  4. $user="root";
  5. $pass="meraiitnahihua";
  6. $db="odf";
  7.  
  8. $con=mysqli_connect($host,$user,$pass,$db);
  9.  
  10. $user=$_POST['user'];
  11. $email=$_POST['email'];
  12. $pass=$_POST['pass'];
  13.  
  14. echo 'Hello'.' '.$user.'<br>';
  15. echo 'Your Email Id'.' '.'<u>'.$email.'</u>'.' '.'is registered with us!';
  16.  
  17. $sql = "INSERT INTO users('username','email id','password')VALUES('$user','$email','$pass')";
  18.  
  19. if ($con->query($sql)===TRUE)
  20. {
  21. echo "new record created successfully";
  22. }
  23. else
  24. {
  25. echo "Error: " . $sql . "<br>" . $con->error;
  26. }
  27. $con->close();
  28.  
  29. ?>
  30.  
  31. #top
  32. {
  33. border:2px solid #FFFFFF; height:200px; width:1030px; background-color:899282; margin:auto; margin-top:50px;
  34. }
  35.  
  36. #one
  37. {
  38. height:200px; width:500px; background-color:899282; float:left; margin:auto;
  39. }
  40.  
  41. #two
  42. {
  43. height:200px; width:528px; background-color:899282; float:left; margin:auto;
  44. }
  45.  
  46. #menu
  47. {
  48. height:30px;
  49. width:1030px;
  50. border:2px solid #FFFFFF;
  51. margin:auto;
  52. background-color:82b52f;
  53. font-family:whimsy TT;
  54. color:white;
  55. margin:auto;
  56. }
  57.  
  58. #content{
  59. border:2px solid #FFFFFF; height:300px; width:1030px; background-color:8fde6f; margin:auto;
  60. }
  61.  
  62. #left{
  63. height:300px; width:230px; background-color:ded76f; float:left; margin:auto;
  64. }
  65.  
  66. #center{
  67. height:300px; width:570px; background-color:82b52f; float:left; margin:auto; color:white;
  68. }
  69.  
  70. #right{
  71. height:300px; width:230px; background-color:ded76f; float:left; margin:auto;
  72. }
  73.  
  74.  
  75. h1
  76. {
  77. font-size:48px; font-family:whimsy TT; color:white;
  78. }
  79.  
  80. h2
  81. {
  82. font-size: 25px; font-family:whimsy TT; color:f32542;
  83. }
  84.  
  85. h4
  86. {
  87. font-size: 15px; font-family:arial; color:white;
  88. }
  89.  
  90.  
  91. #footer
  92. {
  93.  
  94. height:20px;
  95. width:1030px;
  96. border:1px solid #FFFFFF;
  97. background-color:f32542;
  98. margin:auto;
  99. }
  100.  
  101. <html>
  102. <head>
  103. <!-- Start WOWSlider.com HEAD section -->
  104. <link rel="stylesheet" type="text/css" href="engine1/style.css" />
  105. <script type="text/javascript" src="engine1/jquery.js"></script>
  106. <!-- End WOWSlider.com HEAD section -->
  107. <title>welcome</title>
  108. <link href="top.css" type="text/css" rel="stylesheet" media="all" />
  109.  
  110.  
  111. <style>
  112.  
  113. table {
  114. table-layout:fixed;
  115. width:1030px;
  116. }
  117.  
  118.  
  119. body {
  120. background-image: url("border1.jpg");
  121. background-size:cover;
  122. }
  123. </style>
  124.  
  125. </head>
  126.  
  127.  
  128. <body>
  129.  
  130. <div id="top">
  131. <div id="one">
  132.  
  133. <!-- Start WOWSlider.com BODY section -->
  134. <div id="wowslider-container1">
  135. <div class="ws_images"><ul>
  136. <li><img src="data1/images/1.png" alt="ONLINE DISCUSSION FORUM..." title="ONLINE DISCUSSION FORUM..." id="wows1_0"/></li>
  137. <li><img src="data1/images/2.jpg" alt="a place where people can post queries..." title="a place where people can post queries..." id="wows1_1"/></li>
  138. <li><img src="data1/images/3.jpg" alt="where people can share their views..." title="where people can share their views..." id="wows1_2"/></li>
  139. <li><img src="data1/images/4.png" alt="a place where any topic can be discussed..." title="a place where any topic can be discussed..." id="wows1_3"/></li>
  140. <li><img src="data1/images/5.jpg" alt="a place to be yourself..." title="a place to be yourself..." id="wows1_4"/></li>
  141. <li><img src="data1/images/6.jpg" alt="a place where people are free to talk about anything..." title="a place where people are free to talk about anything..." id="wows1_5"/></li>
  142. <li><a href="http://wowslider.com/vi"><img src="data1/images/7.jpg" alt="css slider" title="where people can respond to others and comment on their posts..." id="wows1_6"/></a></li>
  143. <li><img src="data1/images/8.jpg" alt="a place where people are connected..." title="a place where people are connected..." id="wows1_7"/></li>
  144. </ul></div>
  145. <div class="ws_bullets"><div>
  146. <a href="#" title="ONLINE DISCUSSION FORUM..."><span>1</span></a>
  147. <a href="#" title="a place where people can post queries..."><span>2</span></a>
  148. <a href="#" title="where people can share their views..."><span>3</span></a>
  149. <a href="#" title="a place where any topic can be discussed..."><span>4</span></a>
  150. <a href="#" title="a place to be yourself..."><span>5</span></a>
  151. <a href="#" title="a place where people are free to talk about anything..."><span>6</span></a>
  152. <a href="#" title="where people can respond to others and comment on their posts..."><span>7</span></a>
  153. <a href="#" title="a place where people are connected..."><span>8</span></a>
  154. </div></div><div class="ws_script" style="position:absolute;left:-99%"><a href="http://wowslider.net">jquery slider</a> by WOWSlider.com v8.7</div>
  155. <div class="ws_shadow"></div>
  156. </div>
  157. <script type="text/javascript" src="engine1/wowslider.js"></script>
  158. <script type="text/javascript" src="engine1/script.js"></script>
  159. <!-- End WOWSlider.com BODY section -->
  160.  
  161.  
  162.  
  163. </div>
  164.  
  165. <div id="two">
  166.  
  167. <h1> <center> <b> <i> <font face="whimsy TT" color="white"> ONLINE DISCUSSION FORUM </font> </i> </b> </center> <h1>
  168. </div>
  169.  
  170. </div>
  171.  
  172.  
  173.  
  174. <div id="menu">
  175. <table height="40px" width="970px">
  176. <tr>
  177. <th valign="top"> <a href="home.php"> Home </a></th>
  178. <th valign="top"> <a href="about.php"> About </a></th>
  179. <th valign="top"> <a href="privacy.php"> Privacy </a></th>
  180. <th valign="top"> <a href="contact.php"> Contact us </a></th>
  181. </tr>
  182.  
  183. </table>
  184.  
  185. </div>
  186.  
  187. <div id="content">
  188.  
  189. <div id="left">
  190. <h2> <a href="login.php"> <center> <u> <i> <font face="whimsy TT" color="f32542"> LOGIN </font> </i> </u> </center> </a> </h2>
  191. </div>
  192.  
  193. <div id="center">
  194. <h1> <center> WELCOME! <center> </h1>
  195. <h4> We are pleased to welcome you to this ONINE DISCUSSION PORTAL.
  196. You are at the right place where you can post queires, seek valuable responses, and discuss nout anything you wish to.
  197. We believe that you will have a great experience with us.
  198. keep visiting...!
  199. </h4>
  200.  
  201. </div>
  202.  
  203. <div id="right">
  204. <h2> <a href="register.php"> <center> <u> <i> <font face="whimsy TT" color="f32542" size="65px"> REGISTER </font> </i> </u> </center> </a> </h2>
  205.  
  206.  
  207. <form action="connection.php" method="post">
  208.  
  209. <b> Enter Username: </b> <input type="text" name="user" "required"> <br> <br>
  210. <b> Enter Email Id: </b> <input type="email" name="email" "required"> <br> <br>
  211. <b> Enter Password: </b> <input type="password" name="pass" "required"> <br> <br>
  212.  
  213. <input type="submit" value="REGISTER" name="REGISTER">
  214.  
  215.  
  216. </form>
  217.  
  218. </div>
  219.  
  220. </div>
  221.  
  222.  
  223.  
  224. <div id="footer"> <!-- footer Div Start Here -->
  225. <table height="20px" width="970px">
  226. <tr>
  227. <th valign="top" > <font color="white"> <marquee> All your questions answered here....! &reg </marquee> </font> </th>
  228. </tr>
  229. </table>
  230.  
  231.  
  232. </div> <!-- footer Div End Here -->
  233.  
  234.  
  235.  
  236.  
  237.  
  238. </body>
  239. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement