I have the following in a block where the text format is PHP code. For some reason the php is just stripped out when I view the page.
<a href="<?php print base_path(); ?>node/add/f2?edit[field_f2][und]=<?php print arg(2); ?>">New</a>
I have the following in a block where the text format is PHP code. For some reason the php is just stripped out when I view the page.
<a href="<?php print base_path(); ?>node/add/f2?edit[field_f2][und]=<?php print arg(2); ?>">New</a>
There is a ; missing after print base_path().
It should be print base_path();
?> implies a semi-colon. I agree it's good practice to include one - but that shouldn't be causing an issue.