944,085 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Feb 5th, 2007
0

Email Form ?

Expand Post »
Hi all im looking for a simple script that just has a single form where someone can enter their email address and the form will send that address to my email account , like "Subscribe to Newsletter" style thing...

Thanks all
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
RiverKqj is offline Offline
37 posts
since Oct 2006
Feb 15th, 2007
0

Re: Email Form ?

try this

HTML and CSS Syntax (Toggle Plain Text)
  1. <form action="mailto:you@yourdmainhere.com" method="post" enctype="text/plain" >
  2. FirstName:<input type="text" name="FirstName">
  3. Email:<input type="text" name="Email">
  4. <input type="submit" name="submit" value="Submit">
  5. </form>
Reputation Points: 11
Solved Threads: 6
Posting Whiz in Training
Inny is offline Offline
293 posts
since Oct 2005
Feb 17th, 2007
0

Re: Email Form ?

For that you need to know a server-side such as ASP or PHP. However you can also do it with JavaScript, but it depends upon clients configuration, not safe and not recommended. So use either ASP or PHP.

See this threads

http://www.daniweb.com/techtalkforums/thread58133.html

Or try using these...
http://w3schools.com/asp/asp_send_email.asp
http://w3schools.com/php/php_mail.asp
http://w3schools.com/php/php_secure_mail.asp
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Feb 17th, 2007
0

Re: Email Form ?

Vishesh, your probably right, but for the sake of learning please explain whjats wrong with my suggestion above? It does what he wants no?
Reputation Points: 11
Solved Threads: 6
Posting Whiz in Training
Inny is offline Offline
293 posts
since Oct 2005
Feb 18th, 2007
0

Re: Email Form ?

No, it doen't do what he wants. The thing you have given just draws a form, which just gets inputs and do nothing else. It doent mails that data to you or else... Its just HTML. To make it work you will have to embed a server side script with it.

For doing that you need to learn a server side such as ASP, PHP, CGI etc... Server side means that all the processing would be done in server not on clients computer.

If you want to learn a server side, you may refer to several resources on web... I recommend PHP!

www.w3schools.com
www.asptutorials.info
www.phptutorials.info
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Feb 18th, 2007
0

Re: Email Form ?

my apology, something like this will serve you

HTML and CSS Syntax (Toggle Plain Text)
  1. <FORM ACTION="http//someserver/cgi-bin/formmail.pl" METHOD="POST">
  2.  
  3. Name: <INPUT TYPE="text" NAME="Name" VALUE="" SIZE="25" MAXLENGTH="50"> <BR>
  4.  
  5. Email: <INPUT TYPE="text" NAME="Email" VALUE="" SIZE="25" MAXLENGTH="50"><BR>
  6.  
  7. <INPUT TYPE="CHECKBOX" NAME="subscribe" CHECKED> Subscribe me to the News letter <BR>
  8.  
  9. Format of the Email:<BR>
  10. <INPUT TYPE="radio" NAME="format" VALUE="html" CHECKED> HTML<BR>
  11. <INPUT TYPE="radio" NAME="format" VALUE="text"> Plain Text<BR>
  12.  
  13. Type of subscription you want:<BR>
  14. <SELECT NAME="type">
  15. <OPTION VALUE="standard"> Standard - FREE
  16. <OPTION VALUE="prof" > Professional - Paid
  17. </SELECT> <BR>
  18.  
  19. Comments to the editor:<BR>
  20. <TEXTAREA NAME="comments" ROWS="7" COLS="30"></TEXTAREA>
  21.  
  22. <input type="hidden" name="to" value="you@somemail.com">
  23.  
  24.  
  25. <BR>
  26. <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Sign Me Up!">
  27. </FORM>
Reputation Points: 11
Solved Threads: 6
Posting Whiz in Training
Inny is offline Offline
293 posts
since Oct 2005
Feb 18th, 2007
0

Re: Email Form ?

No, it will also not work. It will just show the form. E-Mail would still be not sent. Reason is same, its all HTML and HTML just knows what to show on browser, to make it dynamic we use scripts. Again you need to embed a server side script.

You try out some web tutorials at w3schools.com. But befire continuing go through the very last chapter ( SUMMARY, WHAT NEXT etc...). It may clarify your doubts.
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Feb 18th, 2007
0

Re: Email Form ?

He says he wishes a way for a person to email him their own email adress. I beleive both above will serve the purpose, even a 'contact us' button. He does not elaborate on his intention for its use. I know that both above will do exactly that because i tried them, they open the users own email client and they can send.
a simple mailto as in #1 will suffice because he will still receive their adress for whatever purpose he intends. This is all he asks for.

Quote ...
Hi all im looking for a simple script that just has a single form where someone can enter their email address and the form will send that address to my email account , like "Subscribe to Newsletter" style thing...

Thanks all
notice he says "like" subscribe to newsletter, he does not ask specifically for a newsletter system.
Reputation Points: 11
Solved Threads: 6
Posting Whiz in Training
Inny is offline Offline
293 posts
since Oct 2005
Feb 19th, 2007
0

Re: Email Form ?

He doen't want any email client to do this job.
He wants something like in websites where we enter our email for subscription, and ofcource no email clent is opened. Try to email someone(member) using daniweb. You will see that no email clent is opened.

What he want is:
1. A textbox which will get the email from visiter i.e. you had made.
2. That email address to be directly mailed to his address. That where we had to do some server side.

What you are saying is not correct because:
1. Not all users use these email clients, including me.
2. Imagine yourself that you went to few website and they ask you for your email. You will enter email address and they will inturn open outlook. Frustating.
3. This approach will rely upon client's configuration(so you may not get what you want), and therefore is not secure, reliable.
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Feb 19th, 2007
0

Re: Email Form ?

He doen't want any email client to do this job.
He wants something like in websites where we enter our email for subscription, and ofcource no email clent is opened. Try to email someone(member) using daniweb. You will see that no email clent is opened.

What he want is:
1. A textbox which will get the email from visiter i.e. you had made.
2. That email address to be directly mailed to his address. That where we had to do some server side.

What you are saying is not correct because:
1. Not all users use these email clients, including me.
2. Imagine yourself that you went to few website and they ask you for your email. You will enter email address and they will inturn open outlook. Frustating.
3. This approach will rely upon client's configuration(so you may not get what you want), and therefore is not secure, reliable.
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: passing data using multiple form styles
Next Thread in HTML and CSS Forum Timeline: CSS Rendering Differently in FF and IE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC