This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Submit Form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Submit Form" Watch "Submit Form" New topic
Author

Submit Form

Hugh Mclaughlin
Greenhorn

Joined: Nov 18, 2004
Posts: 24
Hi there I have created a feedback form in basic HTML, and when it submits it sends it through outlook or a similar email client. Except I want it so it sends it to whatever address, but the user does not have to go through an email client. As in another page is all they see, saying "Thank you for your feedback." Could anyone let me know if this is possible? Below is my current code:

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
If you do not want a user to go through an email client, you have to use a serverside languae to process the data and store it or email it. You will not be able to pull this off with JavaScript alone.

Eric
Hugh Mclaughlin
Greenhorn

Joined: Nov 18, 2004
Posts: 24
Thanks for the reply Eric, so what is a server-side language exactly? JSP? Perl? PHP?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What ever you feel like using or your server supports.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

If you want to do this with servlets (JSP would be a poor choice), the JavaMail API is discussed in the Other Java APIs forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
Use PHP it's easy to use..


<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
 
 
subject: Submit Form
 
Similar Threads
In the messages module reply is not working
How to position fieldset?
Cannot retrieve mapping for action /content/AddLinks
enable disabled input using js
Securing email forms