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

[eluser]Unknown[/eluser]
Instead of using form_submit button, use form_input and put in your image info
Code:
<?php
                echo form_open("home/search");
                $searchterm = array(
                    "name" => "term",
                    "id" => "term",
                    "maxlength" => "64",
                    "size" => "15"
                );
                $btn_search = array(
                    'type'      => 'image',
                    'src'        => base_url().'images/site/btn_search.gif',
                    'name'        => 'image',
                    'width'     => '27',
                    'height'    => '22',
                    'value'        => ''
                    
                );

                echo form_input($searchterm);
                echo form_input($btn_search);
                echo form_close();


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