Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <div class="col-md-4 col-md-offset-4" style="height:-50px; width: -100px;">
  2. <div class="login-panel anmeldepanel panel-default" style="margin-top:-100px; margin-left:-150px;">
  3. <div class="panel-heading">
  4. <h3 class="panel-title">Email activation</h3>
  5. </div>
  6. <div class="panel-body" style="height:320px; width: -100px;">
  7.  
  8. <a style="margin-top: 100px; margin-left: 180px; font-family: 'Calibri'; font-size:70px; color:white;"><i class="fa fa-check"></i></a>
  9.  
  10. <div style="text-align: center; font-family: 'Calibri'; color: white;"><h4>Activate your account here:<br><br></h4></div>
  11.  
  12. <div class="form-group" style="">
  13. <input class="form-control" type="text" placeholder="Activation code" name="code" value=''/>
  14. </div>
  15.  
  16. <div class="form-group">
  17. <input class="btn btn-lg btn-success btn-block" type='submit' name="submit" value='Activate my account' />
  18. </div>
  19.  
  20. <?php
  21.  
  22. if (isset($_POST["submit"]))
  23. {
  24. echo 'Submit wurde gedrückt';
  25. $iResult = mysql_query("SELECT `activationcode`
  26. FROM `users`
  27. WHERE `Name`='".$username."';");
  28.  
  29. if (mysql_num_rows($iResult) == $code)
  30. {
  31.  
  32.  
  33. ?><meta http-equiv="refresh" content="4; URL=register1.php"><?php
  34. ?><div style="text-align: center;"><img alt="activity indicator" src="../images/register.gif"><?php
  35. }
  36. }
  37.  
  38.  
  39. if($_POST["submit"] && !$_POST["code"])
  40. {
  41. ?><a class="navbar-brand" style="margin-top: -76px;"><b><h6>*required</h6></a></b><?php
  42. echo 'asdasd';
  43. }
  44. if($_POST["submit"] && !$_POST["username"])
  45. {
  46. ?><a class="navbar-brand" style="margin-top: -313px;"><b><h6>*required</h6></a></b><?php
  47. }
  48. if($_POST["submit"] && !$_POST["password"])
  49. {
  50. ?><a class="navbar-brand" style="margin-top: -240px;"><b><h6>*required</h6></a></b><?php
  51. }
  52. if($_POST["submit"] && !$_POST["email"])
  53. {
  54. ?><a class="navbar-brand" style="margin-top: -166px;"><b><h6>*required</h6></a></b><?php
  55. }
  56.  
  57.  
  58. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement