I am trying to make a website for my company i have a button and a PHP code. They are working smoothly if they are separate from each other but whenever i try to bind them together, They stop working so i am putting the code segments below
HTML Code:
<FORM METHOD="LINK" ACTION="../chkout/cart1/">
<INPUT TYPE="submit" class="form-button" VALUE="PHP to go here">
</FORM>
PHP Code:
<?php echo $this->__('There are <a href="%s"><strong>% items</strong></a> in your cart.', $this->getUrl('chkout/cart1'), $_cart1Quantity) ?>
Both these work fine if they are separated from each other but when i put them together like the one below it stops functioning.
Code:
<FORM METHOD="LINK" ACTION="../chkout/cart1/">
<INPUT TYPE="submit" class="form-button" VALUE="<?php echo $this->__('There are <a href="%s"><strong>%s items</strong></a> in your cart.', $this->getUrl('chkout/cart1'), $_cart1Quantity) ?>">
</FORM>
So suggest some solution so that i can insert PHP code in to an HTML Button ?
Bookmarks