S
stax
Hello,
a PayPal button is typically a image, is it possible to use a real button?
thx
stax
This is the typical markup:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="StaxRip donation">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit">
<img border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1">
</form>
Below is my real button attempt, I should mention I'm pretty clueless about web tech. It has two problems, first IE7 shows a warning about scripting and second it does not work.
<script language="JavaScript">
function goToPayPal()
{
window.document.forms[0].action = 'https:\/\/www.paypal.com\/cgi-bin\/webscr';
window.document.forms[0].submit();
}
</script>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="StaxRip donation">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="button" value="test" name="submit" onclick="goToPayPal()">
</form>
a PayPal button is typically a image, is it possible to use a real button?
thx
stax
This is the typical markup:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="StaxRip donation">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit">
<img border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1">
</form>
Below is my real button attempt, I should mention I'm pretty clueless about web tech. It has two problems, first IE7 shows a warning about scripting and second it does not work.
<script language="JavaScript">
function goToPayPal()
{
window.document.forms[0].action = 'https:\/\/www.paypal.com\/cgi-bin\/webscr';
window.document.forms[0].submit();
}
</script>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="StaxRip donation">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="button" value="test" name="submit" onclick="goToPayPal()">
</form>