The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How to code an image button to call mail.php on contact form
larry78723
post Mar 29 2020, 02:28 PM
Post #1


Member
***

Group: Members
Posts: 39
Joined: 5-March 20
Member No.: 27,220



My contact form starts with:

<form id="form1" method="POST" action="mail.php">

I'd like to replace the last line in my contact from:

<button type="submit" value="Send" style="margin-top:15px; margin-left: 500px; text-align: center;">Send Email</button>

with one that contains

<img src="images/button_send-email.png" alt="Email">

but have no idea what it should look like. I tried <a href "mail.php" <img src="images/button_send-email.png" alt="Email"> > but the button doesn't even show.

Please teach me how this should be done.

Thanks in advance,
Larry
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 12:52 PM