How to use an image as an INVISIBLE button in Ionic?

How can I use an image to submit an HTML form?

  • Input type="image" src="LoginButton.png" name="submit" alt="submit" i can't the page vale to another page, i am use button instead of image in html and php? i am click the image  the page value can't pass to another page

  • Answer:

    Read a good book like Head First HTML & CSS You are reading partial references and need to get a comprehensive understanding of HTML5. These days, we submit forms with JavaScript and AJAX. http://stackoverflow.com/questions/12875911/how-can-i-make-my-input-type-submit-an-image has your answer. <form action="login.php" method="post"> <input type="image" src="LoginButton.jpg" name="form" id="submitbutton"> </form> That is old code. Today we just set an id and class on the button and style it with CSS. That action attribute is what sets to which page this form is being submitted. At least it did in the past. As it is more common these days to submit forms entirely with JavaScript, the <form> element is often omitted as well. That is why when you attempt to follow incomplete examples, they don't work. It is possible to construct forms without enclosing them in <form> element. Read a good book on HTML5 to make all of this crystal-clear.

Leonid S. Knyshov at Quora Visit the source

Was this solution helpful to you?

Other answers

Button with Input type="submit" only can submit your form. Instead, you can use onclick attribute in your image input type, onclick="document.form[0].submit();" Else you can use input="submit" and you can use background-image css property to  style submit button as image.

Rohit Sengar

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.