This is a discussion on "Sending Form Data to E-mail Address" within the Starting Out section. This forum, and the thread "Sending Form Data to E-mail Address are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Sending Form Data to E-mail Address
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Sending Form Data to E-mail Address
Hope this is the right board for this.
I'm using Frontpage and I've designed a form using the design method not HTML. I want to be able to send the data that will be entered in the form to my e-mail address. I can't remember how to do it. I go to "Form Properties" and select "Send To Other". Then I click on "Advanced" then in the "Advanced Form Properties" window I add the recipient, which is my e-mail address. Then I click on "Options" and this is the bit I can't remember. I know the METHOD is "POST" but I can't remember the "ACTION" bit. All I know is it's something to do with webmail-cgi........ at least that's what they told me at my course. Can someone please help me |
|
|
|
|||
|
Re: Sending Form Data to E-mail Address
Hello
Frontpage is a bitch i would try and use dreamweaver to start with. Form action will be mailto: and then the email address. You would need to have some validation on the form i would use PHP or Java (not sure if your new to web design). So for example you would have an HTML form and then you have a PHP or Java script associated. Thats for the advanced version. Here is a very basic java version:-
Last edited by Marc; Dec 21st, 2007 at 12:01. Reason: Added [html] tags] |
|
||||
|
Re: Sending Form Data to E-mail Address
I wouldn't recommend using the mailto function these days. Client-side validation (Javascript) isn't reliable enough, and you need a server-side script to process the form, detect invalid inputs, and format it so that you end up a with a readable message in your inbox. Plus you might also want to redirect users after submission or warn them if it fails.
There are loads of ready made scripts out there that only require a bit of tweaking. Here's a PHP mail script, but you can use anything from Perl to ASP to do the job. Then simply change the action variable at the top of your form to action="filename_of_script"
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Sending Form Data to E-mail Address
Although, if you serious about validation. You probably want to validate with JavaScript AND a server side language. Reason being that when you validate with a server side script the page is reloaded. When you validate and catch errors with JavaScript the page is not reloaded and you can simply highlight the fields that have errors in them.
As far as your users go, this will be easier for them without starting over everytime there is an error (especially with a large form). The reason you use both client and server side is that JavaScript can be turned off and then you can catch those errors on the server side. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP mail() --> Making a Form / Validating Input / Sending an email | c010depunkk | PHP Forum | 4 | Jan 17th, 2008 06:35 |
| Sending database record ID as a membership number t an email address | frinkky | PHP Forum | 3 | Nov 30th, 2006 02:45 |
| Sending Form to E-mail | student_in_training | JavaScript Forum | 2 | Aug 16th, 2006 12:41 |
| About sending form-data to an email address | a.jenery | Web Page Design | 4 | Mar 3rd, 2006 12:17 |
| sending an e-mail by ASP | benbacardi | Classic ASP | 5 | Sep 1st, 2004 19:33 |