Computing.Net > Forums > Web Development > Suggestion box

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Suggestion box

Reply to Message Icon

Name: natureboy
Date: October 10, 2006 at 07:23:39 Pacific
OS: XP
CPU/Ram: Don't know
Product: Gateway
Comment:

I'm looking for a JavaScript code that will allow visitors to my website submit information that would go directly to my e-mail. The only one I've been able to find only opens the e-mail browser. Is there one that will automatically send the information to my e-mail box when they hit the Submit button? Thanks in advance!




Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: October 10, 2006 at 08:59:40 Pacific
Reply:

You can't do it with JavaScript.

If you use the action="mailto:yourname@yoursite.com" in a form then the data entered in the form will be emailed to you, BUT it is dependant on using the visitors email application to do it. This may require the email application to open, it may do it silently, or it may require the users to confirm the action through a dialog.

The reason for all of that is security. We do not want web pages to access our applications or send email w/o our knowing about it.

If you want the ability to send data entered into a form w/o utilizing the user's email application, then you have to do it server-side. Most web hosts include CGI scripts on the server so you can accomplish this with just HTML. However, if your host supports PHP, ASP, or another server-side scripting language then you can create something even easier.

So, your first step is to determine what your host supports and this will determine what options you have.

Michael J


0

Response Number 2
Name: natureboy
Date: October 10, 2006 at 12:47:13 Pacific
Reply:

Thank you.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Suggestion box

HTML Combo boxes www.computing.net/answers/webdevel/html-combo-boxes/1210.html

My Site(suggestions) www.computing.net/answers/webdevel/my-sitesuggestions/251.html

a box and a save button www.computing.net/answers/webdevel/a-box-and-a-save-button/1860.html