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

  • SEARCH
  • Home
  • 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 711453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:44:12+00:00 2026-05-14T04:44:12+00:00

I have one image submit button like this <input id=enter name=enter type=image value=Login src=images/btn_login.jpg/>

  • 0

I have one image submit button like this

     <input id="enter" name="enter" type="image" 
      value="Login"
       src="images/btn_login.jpg"/>

once i click on this image i got following values

    enter.x=39&enter.y=11

but i want to get enter=Login on submit

how to get enter value as login on submit?

Thanks

Some Quick browser tests

Chrome: Working
Safari: Working
Firefox: Working
IE: Not Working
Opera: Not working

Working means enter=login is passed. All browsers are at latest version at the time of writing

  • 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-05-14T04:44:13+00:00Added an answer on May 14, 2026 at 4:44 am

    IE6 and IE7 definitely don’t pass through the value of an image submit, so you can’t use this method if you want your page to work in those browsers. However I’m surprised that you say the latest version of IE doesn’t work, I thought it did

    The only reliable fallback I’ve found is to overload the name attribute:

     <input id="enter" name="enter.login" type="image" 
      value="Login"
       src="images/btn_login.jpg"/>
    

    Then, you have to iterate through all the form params and look for one whose name starts with ‘enter’. Note that your input still needs to have a value attribute of some kind, otherwise browsers won’t pass it through at all.

    Alternatively you can use a normal submit button with a background image – tricky to get consistently styled, or a <button> – although that has even more issues in IE than an image submit 🙁

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

Sidebar

Related Questions

I have the following html: <body> <form action=site1> <input type=image name=submit border=0 src=images/front/search_travel.png alt=
This button is before CSS Sprites <input type=image src=/images/search-button.png value= id=search-button> I'm trying to
On my web site, I have the following code: <input type=image src=images/btn.png alt=Submit border=0
Ok, this one is weird, i have this code: $('#nps').submit(function(e) { e.preventDefault(); var images
I have 2 buttons , one being a image submit button and the other
I would like to have a submit button that contains text and an image.
I have a form for uploading images. I'd like to disable the submit button,
I have noticed that when using a SUBMIT type its name attribute gets passed
I have a basic upload form: <form method=post action= enctype=multipart/form-data > <input type=file name=logo>
I have one textbox (Mandatory using RequiredFieldValidator) and one submit button. I have applied

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.