Advertisement
Guest User

oblah

a guest
Aug 21st, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. <?php
  2. include_once 'inc/eHandler.php';
  3.  
  4. if(isset($_POST['submit1'])) {
  5. $username = mysql_real_escape_string($_POST['username']);
  6. if($username == null || $username == '') {
  7. new eHandler("Please enter your username!", true);
  8. }
  9. $prod = $_POST['prod'];
  10. header("Location: inc/paypal.php?username=". $username ."&prod=". $prod);
  11. }
  12.  
  13. //Includes
  14. include_once 'inc/ms_class.php';
  15.  
  16. ?>
  17. <html>
  18. <head>
  19. <title><?php echo SERVER_NAME ?> - Order Here!</title>
  20. <script src="http://fortumo.com/javascripts/fortumopay.js" type="text/javascript"></script>
  21. </head>
  22. <link href="css/bootstrap.css" rel="stylesheet">
  23. <link href="css/bootstrap-responsive.css" rel="stylesheet">
  24. <script type="text/javascript">
  25. function changedesc() {
  26. var prod = document.getElementById('prodd').value;
  27. var desc = document.getElementById('desc');
  28. if(prod == 1) {
  29. desc.innerHTML = "You will receive 5 Donation Points which you can use for the Donator Shop.";
  30. } else if (prod == 2) {
  31. desc.innerHTML = "You will receive 20 Donation Points which you can use for the Donator Shop.";
  32. } else if (prod == 3) {
  33. desc.innerHTML = "You will receive 25 Donation Points which you can use for the Donator Shop.";
  34. } else if (prod == 4) {
  35. desc.innerHTML = "You will receive 30 Donation Points which you can use for the Donator Shop.";
  36. } else if (prod == 5) {
  37. desc.innerHTML = "You will receive 60 Donation Points which you can use for the Donator Shop.";
  38. } else if (prod == 6) {
  39. desc.innerHTML = "You will receive 130 Donation Points which you can use for the Donator Shop.";
  40. } else if (prod == 7) {
  41. desc.innerHTML = "You will receive 200 Donation Points which you can use for the Donator Shop.";
  42. } else if (prod == 8) {
  43. desc.innerHTML = "Donation Rank with its unique Benefits and Features & also 15 Donator points.";
  44. } else if (prod == 9) {
  45. desc.innerHTML = "Extreme Donator Rank with its unique Benefits and Features & also 30 Donator points.";
  46. }
  47. }
  48. </script>
  49. <style type="text/css">
  50. body {
  51. padding-top: 200px;
  52. padding-bottom: 200px;
  53. background-color: #f5f5f5;
  54. }
  55.  
  56. .form-signin {
  57. max-width: 600px;
  58. padding: 19px 29px 29px;
  59. margin: 0 auto 20px;
  60. -webkit-border-radius: 5px;
  61. -moz-border-radius: 5px;
  62. border-radius: 5px;
  63. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
  64. -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
  65. box-shadow: 0 1px 2px rgba(0,0,0,.05);
  66. }
  67. .form-signin .form-signin-heading,
  68. .form-signin .checkbox {
  69. margin-bottom: 10px;
  70. }
  71. .form-signin input[type="text"],
  72. .form-signin input[type="password"] {
  73. font-size: 16px;
  74. height: auto;
  75. margin-bottom: 15px;
  76. padding: 7px 9px;
  77. }
  78. </style>
  79. <body>
  80. <form class="form-signin" method="post">
  81. <center>
  82. <h1><?php echo 'The Equity Donation Store'?></h1>
  83. <input class="input-block-level" type="text" maxlength="12" placeholder="Enter your username here!" name="username" />
  84. <select id="prodd" onchange="changedesc()" name="prod">
  85. <option value="1">5 Donation Points - $5.00</option>
  86. <option value="2">20 Donation Points - $15.00</option>
  87. <option value="3">25 Donation Points - $20.00</option>
  88. <option value="4">30 Donation Points - $25.00</option>
  89. <option value="5">60 Donation Points - $50.00</option>
  90. <option value="6">130 Donation Points - $100.00</option>
  91. <option value="7">200 Donation Points - $150.00</option>
  92. <option value="8">Donator Rank & 15 Points - $7.50</option>
  93. <option value="9">Extreme Donator Rank & 30 Points - $20.00</option>
  94. </select><br>
  95. <input type="submit" name="submit1" class="btn btn-primary" value="Pay Via PayPal" /><br>
  96. </form><br>
  97. <div class="form-signin">
  98. <h1>Information about your Purchase:</h1><br>
  99. <div id="desc">
  100. <script type="text/javascript">
  101. changedesc();
  102. </script>
  103. </div>
  104. </div>
  105. </body>
  106. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement