Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP submit button Image

I am trying to use image for a submit button

<?php echo $this->Form->submit('/img/prelaunch/btn_signup.gif'); ?>

thats the code i am using. but the image is not able to load The image is present in the following directory

Webroot/img/prelaunch/

**Updated**

HTML Generated

<div class="submit">
<input type="image" src="/ginger/img/prelaunch/btn_signup.gif">
</div>

Webiste Base URL http://bakasura.in/ginger/

URL http://bakasura.in/ginger/users/signup

Image URL http://bakasura.in/ginger/img/prelaunch/btn_signup.jpg

like image 456
Harsha M V Avatar asked Aug 12 '26 09:08

Harsha M V


1 Answers

The image is a jpg, you have put a gif in the submit button source code. Simple mistake :D

like image 144
mark-cs Avatar answered Aug 15 '26 00:08

mark-cs