Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8713249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:17:59+00:00 2026-06-13T05:17:59+00:00

how to reset the form with an image ? i found this on google

  • 0

how to reset the form with an image ?

i found this on google

<button type="reset"><img src="<?php echo base_url(); ?>img/hapus.png"</button>

and it shows like

the image

here, i want to make the reset button like the login button.

here is the code of my login button

<input type="image" src="<?php echo base_url();?>img/login.png">

here is my full code with code igniter

<table>
            <?php echo form_open('c_menu/index'); ?>
            <tr>
                <td>Username</td>
                <td><?php $inusername=array('name' => 'username', 'class' => 'GUI'); echo form_input($inusername); ?></td>
                <td><?php echo form_error(); ?></td>
            </tr>

            <tr>
                <td>Password</td>
                <td><?php $inpassword=array('name' => 'password', 'class' => 'GUI', 'type' =>'password'); echo form_input($inpassword); ?></td>
                <td><?php echo form_error(); ?></td>
            </tr>

            <tr>
                <td>Jabatan</td>
                <td><?php $injabatan=array('keuangan' => 'keuangan', 'hd' => 'head divisi', 'direktur' => 'direktur'); echo form_dropdown('jabatan',$injabatan,'keuangan','class = "gui"'); ?></td>
                <td><?php echo form_error(); ?></td>
            </tr>

            <tr>
                <td></td>
                <td><input type="image" src="<?php echo base_url();?>img/login.png"><input type="image" src="<?php echo base_url(); ?>img/hapus.png" onclick="document.urfrom.reset()"/> </td>
                <td><?php echo form_error(); ?></td>
            </tr>
           <?php echo form_close(); ?>
        </table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:18:01+00:00Added an answer on June 13, 2026 at 5:18 am

    if that is the case you will have to write code something like :

    <input type="img" src="login.jpg" onclick="yourfunction()"/>
    
    and 
    
    for reset
    
    <input type="img" src="hapus.jpg" onclick="document.urfrom.reset()"/> 
    

    you need to create 2 images logjn.jpg and hapus.jpg as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HTML has an input button type to reset all fields in a form to
I found this reset.css file inside a jquery image slider demo, but it was
I have html like this: <div> <span style=display: inline-block;height:20px>20</span> <span style=display: inline-block;><img src=img/ex.png/></span> </div>
Particularly the bit about live.... jQuery('.something').live('click', function() { jQuery(this).parent('form').reset(); }); I suppose this might
I'm trying to use the form_for reset button: <%= button_tag 'Reset', :type => 'reset'
Sir/Madam I am going to create a a form with a reset button which
I want to call Reset Action of form in my Reset Image. Can anybody
I've added a configurable banner form. If I clear to reset the image for
Having (more) issues with zend form decorators. I've got this so far: Reset overall
See the below image. I have added a reset button at the end of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.