This works: <?= $html->image('submit.gif', array('onclick' =>
"JavaScript: submit();")); ?>

On May 3, 2:19 pm, peterhf <[EMAIL PROTECTED]> wrote:
> Thanks for the help; I entered the code that you suggested and got
> this:
>
> Fatal error: Call to undefined function: webroot() ...
>
> On May 3, 1:54 pm, gwoo <[EMAIL PROTECTED]> wrote:
>
> > look at the generated source and your problem should be quite evident.
>
> > try:
> > <?= $html->submit('submit', array('src' => $html->webroot('img/
> > submit.gif'),
> > 'height' => '15', 'width' => '64')); ?>
>
> > should work.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to