View Full Version : need Php Codes
Red*Fox
10-14-2006, 09:30 PM
Hi, ive got an html code and i need someone to translate it into php heres the html
http://www.fileden.com/files/2006/6/15/69153/paypalbutton.txt
danieldk
10-15-2006, 04:18 AM
You can just use HTML in PHP by ending the embedded PHP. For instance:
<?
do_something();
?>
[your PayPal HTML]
<?
do_something_else();
?>
or even:
<?
function printPayPalCode() {
?>
[your PayPal HTML]
<?
}
?>
or integrate it:
<?
function printPayPalCode() {
print "paypal HTML code";
}
?>
Red*Fox
10-15-2006, 10:04 PM
ok so if im making a post and i wanto make the html code work the paypal code should look something like this, ive tried it but it still dosent work.
<?
do_something();
?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="kimberly@mossmanbrotherspools.com">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_name" value="Sweat shirts">
<input type="hidden" name="amount" value="45.00">
<input type="hidden" name="page_style" value="PayPal">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="return" value="http://shadowclanl2.com/shop">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<table><tr><td><input type="hidden" name="on0" value="sizes">sizes</td><td><select name="os0"><option value="S">S<option value="M">M<option value="L">L<option value="XL">XL<option value="XXL">XXL</select>
</td></tr></table><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0"
<?
do_something_else();
?>
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.