It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Submit button with image is not working.

Submit button with image is not working.

Postby johnyct9760 on Tue Sep 30, 2008 7:39 pm

I've followed this walkthrough on how to make a submit button with an image on it. The image part is working fine (along with the mouse up and over images) but the actulle submit function of the button is NOT working. Here is a link to the lession I have been following:

http://www.codetoad.com/html/buttons/im ... button.asp

And here is a link to the page with the non-working submit button:

http://www.acreativeapproach.com/contact.html

This is a pretty simple form That was made in DW. Do I need PHP to get a contact form like this to work?

Thank you for your help

JT
User avatar
johnyct9760
 
Posts: 22
Joined: Sun Mar 02, 2008 5:21 am
Location: USA, Michigan

Postby rangana on Wed Oct 01, 2008 2:17 am

Your submit button is not within any form element.

You close it just after the "telephone" textbox.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Thx that worked great!

Postby johnyct9760 on Wed Oct 01, 2008 4:24 am

Thx alot that was the problem the </form> tag wasn't in the right place. I kind of have a follow up question if you don't mind. I would like the submit button to double as a link button as well. So they click on the submit button the info is sent and then the user is taken to a thank you page.

http://www.acreativeapproach.com/contact.html

I've been playing around with the <form action="MAILTO: and some how having ti double as a link but so far no luck.
User avatar
johnyct9760
 
Posts: 22
Joined: Sun Mar 02, 2008 5:21 am
Location: USA, Michigan

Postby rangana on Wed Oct 01, 2008 4:33 am

If you are using the "mailto" protocol, then it will always open a mail client, like that of Microsoft Outlook, Lotus notes, and much more.

If I were you, I will do this via server-side, possibly PHP/ASP or something alike.

If you intend to work with the mailto protocol, and at the same time, open a submit page, then try to add:
Code: Select all
onsubmit="location.href='thankyou.html'"


on the form tag.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 5 guests