My contact form starts with:

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

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

<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 but the button doesn't even show.

Please teach me how this should be done.

Thanks in advance,
Larry

Recommended Answers

Try <input type="image" src="images/button_send-email.png" alt="Email">

You can see according to W3 that type="image" creates a graphical submit button.

Jump to Post

All 3 Replies

Try <input type="image" src="images/button_send-email.png" alt="Email">

You can see according to W3 that type="image" creates a graphical submit button.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.