Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Help with basic email form
Old 03-13-2003, 02:14 PM Help with basic email form
Junior Talker

Posts: 3
Trades: 0
Hello,

I would be very grateful if someone could offer me some words of wisdom on how to get my email form to work.

It's a very basic form. All I want to do is get the info submitted to the form sent to me by email. I don't need the other person to get a message or anything like that.

I have looked at several HTML sites and quite a few generators and they all come up with something identical - however it will not work. All I get is my email client opening up and a blank email appearing.

The html I am using is:

-------

<form action="mailto:alannah@alannahmoore.com?subject=fo rm submission" method="post" enctype="text/plain">
<INPUT NAME="Name" TYPE="text" VALUE="Name" SIZE=26 MAXLENGTH=60><BR>
<INPUT NAME="Email" TYPE="text" VALUE="Email" SIZE=26 MAXLENGTH=60><BR>
<INPUT TYPE="submit" value="submit" style="color: #000000; background-color: #c0c0c0">
</FORM>

-------

As I have understood, I do not need to use cgi if all I want to do is mail the form, with no autoresponder triggered or whatever.

I think I must be missing something though, so if anyone can help I would be really happy.

Many thanks,

Alannah Moore
alannah is offline
Reply With Quote
View Public Profile Visit alannah's homepage!
 
 
Register now for full access!
Old 03-13-2003, 04:00 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
The code looks OK to me (I'm not an expert on e-mail sending of forms without processing in a script, though). I would strongly recommmend using some sort of scripting (whether it's PHP, CGI or remotely hosted) to process your form as the mailto: action isn't truly valid HTML and I don't think it works on all browsers (maybe the problem you are having??)

The browser will also pop up a message telling the user that the form is being submitted by e-mail etc. which may put some people off.

Just a side-note, you will ge the user's e-mail address from the e-mail you get sent using a form of this type, so the e-mail field is unnecessary (unless they use a different e-mail address to the default...)
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 03-14-2003, 12:51 PM
Junior Talker

Posts: 3
Trades: 0
Thank you David.

I am using IE6 which you would have thought would be fine - however I am convinced I did get a simple form like this to work correctly quite some time ago, and as I was using a different browser at that time, that has to be the answer.

OK I will take your advice and do it with CGI. Thank you very much for your help!

Alannah
alannah is offline
Reply With Quote
View Public Profile Visit alannah's homepage!
 
Old 03-14-2003, 02:33 PM
Lippy's Avatar
LipWeb.Net

Posts: 270
Trades: 0
alannah, the use of a script is the best option, if other people are going to being this form then thier is a chance thier browser doesn't support the mailto function. By using the script it all becomes server side taking the compatibilty away from the browser.
__________________

Please login or register to view this content. Registration is FREE
"Less Lip More Service"
Providing Quality Hosting at Fair Prices
AIM: LipWebNet MSN: daniel[at]lipweb.net Yahoo: LipWebNet ICQ: 265771633
Lippy is offline
Reply With Quote
View Public Profile Visit Lippy's homepage!
 
Old 03-23-2003, 07:39 PM
Average Talker

Posts: 19
Trades: 0
Hello, I had alot of trouble with this when I started. I feel the best method is with a script normally provided with most web hosting companies. This is normally done by a simple cgi email script. You may likely already have this script available to you on your website. Here is an example of how you
would send the info if it is available:

1) Create all of your form fields and label each of the name tags as you would like it to appear in the email sent to you. Example: "Full_Name"

2) Create your submit button. Right click your submit button. And select "form properties" (Front Page), Click "Send to other" next select "Cgi/perl Script" You would then click options, where you will now see: Action & Method.

Find out from your web hosting provider the location of your script here is a common
example:

http://www.yoursite.com/cgi-sys/FormMail.cgi

You would enter this info into the action area.
Next you select "post" under method.

3) Next click the "advanced" button under the form properties.

A few key things are needed here:

4) You will need to enter where this info should be sent. Under the advanced properites you will see: Name & Value

In order to tell your script where to send this info you would enter:

Name: recipient (do not change)
Value: orderbox@yoursite.com (Enter your email address)

a) You need to enter your subject. Click add new, then enter:

Name: subject
Value: Wow! Another order!!! (Type as you wish)

b) Then you enter the page you would like this person to be sent after sending this info. Normally your thank you page.

Name: redirect
Value: http://www.yoursite.com/thankyou.html

These are the most important to get your form to function correctly.

You can also add the following to have the
senders ip address and browser type sent directly to your email!

Name: env_report
value: REMOTE_HOST,HTTP_USER_AGENT

This method although it may seem more complicated is really fairly easy to do, and once you get the hang of it simple. Your forms will also look more professional. Best of luck!
Redstone is offline
Reply With Quote
View Public Profile
 
Old 03-25-2003, 06:18 AM
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Hi Alannah,

This is the classic FormMail script written in Perl. Try it out! It's easy to install and use.

http://www.scriptarchive.com/formmail.html
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
Old 03-27-2003, 05:28 AM
Junior Talker

Posts: 3
Trades: 0
Thank you Lippy, Redstone and Conkermaniac for your responses.

I have in fact set up Form Mailer and it is now running with no problems.

Thanks again for your help and for taking the time to respond!

Best wishes,

Alannah

http://www.alannahmoore.com
alannah is offline
Reply With Quote
View Public Profile Visit alannah's homepage!
 
Reply     « Reply to Help with basic email form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.25616 seconds with 12 queries