Forums
This topic is locked
Form actions
Posted 11 Jun 2007 14:48:29
1
has voted
11 Jun 2007 14:48:29 Olly Beckett posted:
I've built a form in Dreamweaver 8 and have tried various ways of making the submit button work so that it both sends an email containing the form data as well as opens a 'thankyou' page. Is this possible or must the thankyou page contain some sort of information which then sends the form data?I don't want the data stored anywhere, simply sent to an email address. I have tried putting the email address in the Action box and having the button itself as a hyperlink to the thankyou page but to no avail.
If I can avoid CGI that would be great as that is getting into even more complicated territory!
I have also tried adding a Hidden Field with either the email address or thankyou page URL details but again this has not worked.
Thanks
Replies
Replied 01 Jul 2007 04:35:43
01 Jul 2007 04:35:43 white roc replied:
Olly,
I'd like to do what you have in mind - for the same reason, I'd prefer not to have to learn anything about scripts.
But from all the research I have done, if you have a form, you need to use a script on the server to handle the information before it sends it back to you as an email.
I am giving a new look to a website that was professionally designed for me several years ago, and it has 2 forms on it, with the information coming back as emails after it's submitted (and on submit there's a new web page with THANKS which appears)
I'm almost at the stage where the last pages to be done are those with forms...and I still can't find an alternative to using a script! So it looks like I'm going to have to at least try and understand how to make use of the script, even if only to send the same information as before.
The closest I gave come to an alternative, to the existing script on our server is, www.hotdreamweaver.com/form-to-mail. It does require a script, but it sounds as though it might not be too complicated.
If you get any more replies which can suggest another way of doing it I hope they come before I have to tackle scripts!
I'd like to do what you have in mind - for the same reason, I'd prefer not to have to learn anything about scripts.
But from all the research I have done, if you have a form, you need to use a script on the server to handle the information before it sends it back to you as an email.
I am giving a new look to a website that was professionally designed for me several years ago, and it has 2 forms on it, with the information coming back as emails after it's submitted (and on submit there's a new web page with THANKS which appears)
I'm almost at the stage where the last pages to be done are those with forms...and I still can't find an alternative to using a script! So it looks like I'm going to have to at least try and understand how to make use of the script, even if only to send the same information as before.
The closest I gave come to an alternative, to the existing script on our server is, www.hotdreamweaver.com/form-to-mail. It does require a script, but it sounds as though it might not be too complicated.
If you get any more replies which can suggest another way of doing it I hope they come before I have to tackle scripts!
Replied 01 Jul 2007 04:58:50
01 Jul 2007 04:58:50 white roc replied:
Olly,
A few minutes after posting I found this website dreamweaverfever.com/extensions/
About half way down the page I read this :-
" Mailto Thank You Fever!
A rather stupidly named behavior for those who don't have access to CGI for submitting forms via email. This will allow you to use the mailto method and still have the user presented with a 'thank you' or confirmation page. Specifically, it address the problem of a redirect onClick canceling the submission. This behavior will add a delay before the redirect, allowing the submission to take place first. It's all rather easy, just give it a go."
*****
Although I haven't ready any more yet, it looks as though it might be useful.
A few minutes after posting I found this website dreamweaverfever.com/extensions/
About half way down the page I read this :-
" Mailto Thank You Fever!
A rather stupidly named behavior for those who don't have access to CGI for submitting forms via email. This will allow you to use the mailto method and still have the user presented with a 'thank you' or confirmation page. Specifically, it address the problem of a redirect onClick canceling the submission. This behavior will add a delay before the redirect, allowing the submission to take place first. It's all rather easy, just give it a go."
*****
Although I haven't ready any more yet, it looks as though it might be useful.
Replied 03 Jul 2007 18:21:07
03 Jul 2007 18:21:07 Olly Beckett replied:
Thanks white roc, I'm going to take a look at this as it does appear to do what I want. There are no real instructions so I may contact them to clarify - if I'm successful I'll let you know here!