<script type="text/javascript">
function checkForm(form) {
if(form.on0.value == '') {
alert("Error: No amount was entered!");
form.on0.focus();
return false;
}
return true;
}
</script>
<form action="https://www.paypal.com/cgi-bin/webscr" method="POST">
<input type="text" name="on0" value="" placeholder="Username">
That doesn't seem to work when I press my PayPal button.
<input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="donate@dawncraftmc.com"> <input type="hidden" name="item_name" value="VIP"> <input type="hidden" name="item_number" value="1"> <input type="hidden" name="amount" value="2.50"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="lc" value="GB"> <input type="hidden" name="bn" value="PP-BuyNowBF"> <input type="hidden" name="return" value="http://www.dawncraftmc.com/index.html"> <input type="hidden" name="cancel_return" value="http://www.dawncraftmc.com/index.html"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="notify_url" value="http://vip.dawncraftmc.com/ipn.php" /> <input type="hidden" name="custom" value="<?php echo $on0; ?>"> <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online."> <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </form>
Is there an easier way to check this?












