-
Coins in website
Hello Guys i need ur help i am making a gunz server and just 1 thing left for me ill need ur help with that plz help me
Ok the thing is that i dont know how to do automatic coins thats mean when some 1 donate 5$ he will recive automatic 50 coins and not waiting for me to send them for him
Ty Alot for Reading this massage
-
Re: Coins in website
Post the thread in the correct section.
-
Re: Coins in website
Use xweavers webs as a guide.
-
Re: Coins in website
-
Re: Coins in website
Quote:
Originally Posted by
SuperWaffle
^ this PaymentWall is also good if you can provide tax info.
-
Re: Coins in website
Make sure u got the IPN and success shit and just use this...
Code:
<?
SetTitle("EvilGunZ Donation!");
if($_SESSION['AID'] == "")
{
alertbox("Log in first...","index.php");
die();
}
?>
<script language="JavaScript">
/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
function ChangeUrl(formulaire)
{
if (formulaire.ListeUrl.selectedIndex != 0)
{
location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
}
else
{
alert('Veuillez choisir une destination.');
}
}
</script>
<script type="text/javascript">
function updateForm()
{
var donation = document.donation.amount.value;
var coins = donation*1
document.getElementById("coins").innerHTML = coins;
document.donation.item_name.value = coins + " ECoins";
document.donation.item_number.value = coins;
}
</script>
<table width="490" border="0" bgcolor="#151515" align="center" class="login4">
<tr>
<td width="135" align="center" class="estilo2"></td>
<td width="345" height="5" align="center" class="estilo2"></td>
</tr>
<tr>
<td colspan="2" align="center" class="estilo2">Buy Some EvilGunZ Ecoins!</td>
</tr>
<tr>
<td class="estilo2" align="center"></td>
<td class="estilo2" align="center" height="20"></td>
</tr>
<tr>
<td class="estilo1" align="center"><img src="img/bn_paypal.png" width="99" height="91"></td>
<td class="estilo1" align="center" height="20"> The payment service PayPal is widely recognized to be quickly and safely. PayPal offers the use of the most popular for its credit card transactions. </td>
</tr>
<tr>
<td class="estilo1" align="center" height="20"></td>
<td class="estilo1" align="center"></td>
</tr>
<tr>
<td height="20" colspan="2" align="center" class="estilo1"><form name="donation" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="moviezgalore@hotmail.co.uk" />
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="tax" value="0.00" />
<input type="hidden" name="bn" value="PP-BuyNowBF" />
<input type="hidden" name="return" value="http://evilgunz.no-ip.biz/evilgunz/index.php?gunz=ipn" />
<input type="hidden" name="cancel_return" value="http://evilgunz.no-ip.biz/evilgunz/" />
<input type="hidden" name="notify_url" value="http://evilgunz.no-ip.biz/evilgunz/index.php?gunz=ipn" />
<input type="hidden" name="rm" value="2" />
Donate:<br>
<select name="amount" onchange="updateForm();" class="Login">
<option value="1.00">1 GBP</option>
<option value="5.00" selected>5 GBP</option>
<option value="10.00">10 GBP</option>
<option value="15.00">15 GBP</option>
<option value="20.00">20 GBP</option>
<option value="25.00">25 GBP</option>
<option value="30.00">30 GBP</option>
<option value="35.00">35 GBP</option>
<option value="40.00">40 GBP</option>
<option value="45.00">45 GBP</option>
<option value="50.00">50 GBP</option>
<option value="75.00">75 GBP</option>
<option value="100.00">100 GBP</option>
</select>
<br /><br>
With this donation, you will get <span id="coins">25</span> ECoins
<input type="hidden" name="item_name" value="25 ECoins">
<input type="hidden" name="item_number" value="25">
<input type="hidden" name="custom" value="<?php echo $_SESSION['AID']; ?>">
<script type="text/javascript">
updateForm();
</script><br><br>
<input name="submit" type="submit" id="submit" value="Donate now" class="login">
</form></td>
</tr>
<tr>
<td class="estilo2" align="center"></td>
<td class="estilo2" align="center" height="5"></td>
</tr>
</table>
It's been released many times before....