Reply
I need html form help!!
Old 04-24-2003, 12:53 AM I need html form help!!
Junior Talker

Posts: 2
I have Win 98 on a Compaq Presario and am running Internet Explorer.
I created a mailto form on my site and it looks great. When the information is filled in and the "submit" button is clicked, I get an email with the form data. My problem is finding out how to have the same "submit" button email me the info AND send the person who filled out the form to a "Thank you for submitting" page.

Here's what I recently tried:
<FORM METHOD="Post" Action="mailto:myownlawyer@excite.com" onSubmit="thankyouppl.htm" ENCTYPE="text/plain">
For the "Submit" button, I put:
<INPUT TYPE="Submit" VALUE="Submit">

Any suggestions?
__________________
Rae M Will
raewill is offline
Reply With Quote
View Public Profile Visit raewill's homepage!
 
When You Register, These Ads Go Away!
Old 04-24-2003, 07:02 AM
praveen's Avatar
Life is a Dream

Latest Blog Post:
Happy Holidays
Posts: 3,577
Location: in a distant land far away from reality
with a basic mailto: form, i do not think you can send the visitor any thank you mail.

unless the recipient email address has an autosender enabled in it.

u have to use some form of server side mail script which does it for u..

go to hotscripts.com there are lots of email form script.

find out what ur host supports (cgi/php/asp) then get the relevant one
__________________
Praveen
Web Tools - Smilies - Celebs - Short URLs - Indian Food - Create a Poll - Social Bookmark Widget

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Old 04-24-2003, 02:44 PM I don't think I made my ? clear - sorry
Junior Talker

Posts: 2
What I'm actually trying to do is... once the person fills out the "mailto" form, then clicks on "Submit", I want them to be redirected or sent in some way to another page on my site which says "thank you for submitting" or something like that. What was happening was the person clicked on "Submit" and I would get the e-mail notification but the person wouldn't see any change on their screen so they would think the "Submit" wasn't working. I end up with 5 or 6 emails for the same person because they kept hitting "Submit".

I did find out I could add a small "popup" thank you by putting:
<INPUT TYPE="Submit" VALUE="Submit" onClick="alert('Thank you!')">onClick="alert('Thank you!')">

Anyt other suggestions? Someone else told me to try CGI but the code lost me in the first line.

Thanks!
__________________
Rae M Will
raewill is offline
Reply With Quote
View Public Profile Visit raewill's homepage!
 
Old 04-24-2003, 03:08 PM
praveen's Avatar
Life is a Dream

Latest Blog Post:
Happy Holidays
Posts: 3,577
Location: in a distant land far away from reality
this will do the trick for you
Quote:

<FORM METHOD="Post" Action="mailto:myownlawyer@excite.com" ENCTYPE="text/plain"
onsubmit="alert('thanks');location.href='as.htm'">


just change the as.htm to a page of ur choice and change the path if necessary..

also change the message in the alert from thanks to something else.

on a side note, u can remove the alert from the form as you can include the message in the page where the visitor is going to be redirected.
then in that case the form tag will look like this

<FORM METHOD="Post" Action="mailto:myownlawyer@excite.com" ENCTYPE="text/plain"

onsubmit="location.href='as.htm'">

hope this helps..

what will happen is when someone hits the submit button, first they will get the standard message saying this form is submitted using email...... normal stuff, then they will get redirected to the page u mentioned.


and one more thing which i forgot,

whether the visitor says ok and agrees to send the mail through his/her default email client or not, they will be redirected to the next page..

so u cannot verify whether the mail has been sent or not.. this is the download side of it..
__________________
Praveen
Web Tools - Smilies - Celebs - Short URLs - Indian Food - Create a Poll - Social Bookmark Widget

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS

Last edited by praveen : 04-24-2003 at 03:37 PM.
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Old 05-15-2003, 03:32 PM
megalomaniac's Avatar
Average Talker

Posts: 18
Location: Brantford Ontario Canada
well...i was going to help.............i guess i was beaten to it.....by quite some while..........hmmmmmmm.........
megalomaniac is offline
Reply With Quote
View Public Profile Visit megalomaniac's homepage!
 
Reply     « Reply to I need html form help!!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15773 seconds with 12 queries