I am building a small admin page for my client to paste the code he has generated from paypal to use add to cart buttons next to his stock.
All seems fine, have created the area for him to upload:
<textarea name=“paypalPath” rows=“15” cols=“80” style=“width:100%”><? echo $paypalPath;?></textarea>
Which seems to be working fine, as just looked in the database and the code appears as it should in the text type area as below:
<form target=\\"paypal\\" action=\\"https://www.paypal.com/cgi-bin/webscr\\" method=\\"post\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"_s-xclick\\">
<input type=\\"hidden\\" name=\\"hosted_button_id\\" value=\\"J3CPLKUBXVAC4\\">
<table>
<tr><td><input type=\\"hidden\\" name=\\"on0\\" value=\\"Size\\">Size</td></tr><tr><td><select name=\\"os0\\">
<option value=\\"4-7\\">4-7 </option>
<option value=\\"7-11\\">7-11 </option>
</select> </td></tr>
</table>
<input type=\\"image\\" src=\\"https://www.paypalobjects.com/en_GB/i/btn/btn_cart_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>
All good so far, so then to the page where buttons is supposes to appear:
<div><?=$f[‘paypal_Path’]?></div>
Then basically it doesnt output correctly, can anyone see what I am doing wrong, as all seems proper to me.