PDA

View Full Version : hook php code


tomsch
24 Dec 2009, 00:24
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div align="center">
<p>This Donate Button is to help </p>
<p>cover the cost of running this website.</p>
<p>
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="99999999">
<input type="image" src="https://www.paypal.com/en_US/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.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></p>
</div>
</form>

I am trying to understand the difference between VB' php formating vs. the normal way.

ok i have this php code snippet that works, i consider the nornal way.

this code does not work when i add it as php in the plugin manager.

i get parse errors mostly as i edit it.


first whats the difference.

second where can i read more??

Lynne
24 Dec 2009, 03:40
That is not php, that is html. So, you can't add it to some php widget as is. You would need to write it to a variable and then spit the variable out in the widget (or use some other php 'command' to spit it out).

tomsch
24 Dec 2009, 13:32
odd cause i put that in a set of body tags and it works perfectly as a widget.

the widget section must be different enough that it works.

ok back to my reading.

Lynne
24 Dec 2009, 14:42
odd cause i put that in a set of body tags and it works perfectly as a widget.

the widget section must be different enough that it works.

ok back to my reading.
Of course it does. body tags are html. You are putting html inside html, so it should work just fine.