Welcome Guest, Not a member yet? Register   Sign In
Using image as a button in form_submit
#8

[eluser]Unknown[/eluser]
Hi, I know this post is 2 years old but I thought I'd add what I did (maybe someone can correct it if I'm not doing this right as I'm new to CI)...

Basically I put the image as a background in the CSS and did the following in the loginform.php
Code:
<?php
$property_type = array('class' => 'form-submit', 'src="'.base_url().'"/application/_images/login-btn.png"', 'name' => 'Login'); echo form_submit($property_type); ?>

?>

Did I just fluke out getting this to work? I don't know but it does exactly what I need it to do.


Messages In This Thread
Using image as a button in form_submit - by El Forum - 12-29-2008, 04:07 PM
Using image as a button in form_submit - by El Forum - 12-29-2008, 04:34 PM
Using image as a button in form_submit - by El Forum - 12-29-2008, 04:40 PM
Using image as a button in form_submit - by El Forum - 12-29-2008, 09:49 PM
Using image as a button in form_submit - by El Forum - 12-30-2008, 08:01 AM
Using image as a button in form_submit - by El Forum - 05-11-2010, 11:01 AM
Using image as a button in form_submit - by El Forum - 08-31-2010, 08:42 AM
Using image as a button in form_submit - by El Forum - 06-04-2012, 10:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB