Is it possible??
Posted: Wed Jan 20, 2010 1:24 pm
Hi,
I have been learning PHP for the last month and have hit a problem, I need to insert a PHP form into a PHP script.
PHP Script "Form in here" shows where i need to insert the code.
PayPal Code to be inserted
Is it possible? and could anyone give me some pointers?
Many Thanks
Ian
I have been learning PHP for the last month and have hit a problem, I need to insert a PHP form into a PHP script.
PHP Script "Form in here" shows where i need to insert the code.
Code: Select all
$out.="<a rel=\"lightbox[".$gal."]\" title=\"$file\" href=\"$gal/$file\" paypalform=\"FORM IN HERE\">";
$out.="<img src=\"thumbs/".createThumb( $gal."/".$file, "thumbs/", $width )."\" width=\"$width\" alt=\"".$file."\" class=\"bordered\" /></a>\n";Code: Select all
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="email@email.com">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="Pictures">
<input type="hidden" name="item_number" value="999">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_SM.gif:NonHostedGuest">
<table>
<tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
<option value="Small">Small £0.99</option>
<option value="Medium">Medium £1.99</option>
<option value="Small">Small £2.99</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="option_select0" value="Small">
<input type="hidden" name="option_amount0" value="0.99">
<input type="hidden" name="option_select1" value="Medium">
<input type="hidden" name="option_amount1" value="1.99">
<input type="hidden" name="option_select2" value="Small">
<input type="hidden" name="option_amount2" value="2.99">
<input type="hidden" name="option_index" value="0">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>Many Thanks
Ian