Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once 'inc/eHandler.php';
- if(isset($_POST['submit1'])) {
- $username = mysql_real_escape_string($_POST['username']);
- if($username == null || $username == '') {
- new eHandler("Please enter your username!", true);
- }
- $prod = $_POST['prod'];
- header("Location: inc/paypal.php?username=". $username ."&prod=". $prod);
- }
- //Includes
- include_once 'inc/ms_class.php';
- ?>
- <html>
- <head>
- <title><?php echo SERVER_NAME ?> - Order Here!</title>
- <script src="http://fortumo.com/javascripts/fortumopay.js" type="text/javascript"></script>
- </head>
- <link href="css/bootstrap.css" rel="stylesheet">
- <link href="css/bootstrap-responsive.css" rel="stylesheet">
- <script type="text/javascript">
- function changedesc() {
- var prod = document.getElementById('prodd').value;
- var desc = document.getElementById('desc');
- if(prod == 1) {
- desc.innerHTML = "You will receive 5 Donation Points which you can use for the Donator Shop.";
- } else if (prod == 2) {
- desc.innerHTML = "You will receive 20 Donation Points which you can use for the Donator Shop.";
- } else if (prod == 3) {
- desc.innerHTML = "You will receive 25 Donation Points which you can use for the Donator Shop.";
- } else if (prod == 4) {
- desc.innerHTML = "You will receive 30 Donation Points which you can use for the Donator Shop.";
- } else if (prod == 5) {
- desc.innerHTML = "You will receive 60 Donation Points which you can use for the Donator Shop.";
- } else if (prod == 6) {
- desc.innerHTML = "You will receive 130 Donation Points which you can use for the Donator Shop.";
- } else if (prod == 7) {
- desc.innerHTML = "You will receive 200 Donation Points which you can use for the Donator Shop.";
- } else if (prod == 8) {
- desc.innerHTML = "Donation Rank with its unique Benefits and Features & also 15 Donator points.";
- } else if (prod == 9) {
- desc.innerHTML = "Extreme Donator Rank with its unique Benefits and Features & also 30 Donator points.";
- }
- }
- </script>
- <style type="text/css">
- body {
- padding-top: 200px;
- padding-bottom: 200px;
- background-color: #f5f5f5;
- }
- .form-signin {
- max-width: 600px;
- padding: 19px 29px 29px;
- margin: 0 auto 20px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
- box-shadow: 0 1px 2px rgba(0,0,0,.05);
- }
- .form-signin .form-signin-heading,
- .form-signin .checkbox {
- margin-bottom: 10px;
- }
- .form-signin input[type="text"],
- .form-signin input[type="password"] {
- font-size: 16px;
- height: auto;
- margin-bottom: 15px;
- padding: 7px 9px;
- }
- </style>
- <body>
- <form class="form-signin" method="post">
- <center>
- <h1><?php echo 'The Equity Donation Store'?></h1>
- <input class="input-block-level" type="text" maxlength="12" placeholder="Enter your username here!" name="username" />
- <select id="prodd" onchange="changedesc()" name="prod">
- <option value="1">5 Donation Points - $5.00</option>
- <option value="2">20 Donation Points - $15.00</option>
- <option value="3">25 Donation Points - $20.00</option>
- <option value="4">30 Donation Points - $25.00</option>
- <option value="5">60 Donation Points - $50.00</option>
- <option value="6">130 Donation Points - $100.00</option>
- <option value="7">200 Donation Points - $150.00</option>
- <option value="8">Donator Rank & 15 Points - $7.50</option>
- <option value="9">Extreme Donator Rank & 30 Points - $20.00</option>
- </select><br>
- <input type="submit" name="submit1" class="btn btn-primary" value="Pay Via PayPal" /><br>
- </form><br>
- <div class="form-signin">
- <h1>Information about your Purchase:</h1><br>
- <div id="desc">
- <script type="text/javascript">
- changedesc();
- </script>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement