473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Java Help

hi all

im new to the whole java thing and need some help!

im trying to make an e mail form and when i test it, it sends the e mail to
the designated e mail address but when i go to the e mail account i sent it
to it doesnt have any info that should have been submitted

all i get in the e mail is: name=

im using the following e mail form template: JavaFile.com e-mail form

Thanks for any help you can offer!

Jul 20 '05 #1
8 2094
Eagle35 wrote:
im new to the whole java thing and need some help!
This is a JavaScript newsgroup, not a Java newsgroup.
im trying to make an e mail form and when i test it, it sends the e mail
to the designated e mail address but when i go to the e mail account i
sent it to it doesnt have any info that should have been submitted all i get in the e mail is: name= im using the following e mail form template: JavaFile.com e-mail form


A glance at that (you could have been more specific), suggests they use the
mailto technique. Read all about it:

http://www.isolani.co.uk/newbie/mailto.html

Now read about how form data should be handled:
http://www.cs.tut.fi/~jkorpela/forms/

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2
Lee
Eagle35 said:

hi all

im new to the whole java thing and need some help!

im trying to make an e mail form and when i test it, it sends the e mail to
the designated e mail address but when i go to the e mail account i sent it
to it doesnt have any info that should have been submitted

all i get in the e mail is: name=

im using the following e mail form template: JavaFile.com e-mail form

Thanks for any help you can offer!


It's probably not a good idea to use code from a site that
refers to them "Java Scripts". It suggests that the author
doesn't really understand that Javascript has nothing at all
to do with Java.

There is no Javascript or Java required to create an email
form. All you need is HTML and to know that every visitor
who uses the form has their default email agent defined so
that the browser can invoke it, and that their browser
supports the "mailto" protocol, and that they don't mind
allowing your form to send their information via email.

If you're willing to believe that all of those are true,
all you need is something like this. Again, there is
no Java or Javascript involved at all:

<html>
<body>
<form action="mailto:yo*@yourdomain.com"
method="post"
enctype="text/plain">
<input name="alpha"><br>
<input name="beta"><br>
<select name="gamma">
<option>one</option>
<option>two</option>
</select>
<input type="submit">
</form>
</body>
</html>

Jul 20 '05 #3
Lee wrote:
<form action="mailto:yo*@yourdomain.com"


.... that is too unreliable to use in a production environment.

http://www.isolani.co.uk/newbie/mailto.html

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #4
yer i tried this and it works! all the info is sent by a email!

Thanks for the help!
"Lee" <RE**************@cox.net> wrote in message
news:bn********@drn.newsguy.com...
Eagle35 said:

hi all

im new to the whole java thing and need some help!

im trying to make an e mail form and when i test it, it sends the e mail tothe designated e mail address but when i go to the e mail account i sent itto it doesnt have any info that should have been submitted

all i get in the e mail is: name=

im using the following e mail form template: JavaFile.com e-mail form

Thanks for any help you can offer!


It's probably not a good idea to use code from a site that
refers to them "Java Scripts". It suggests that the author
doesn't really understand that Javascript has nothing at all
to do with Java.

There is no Javascript or Java required to create an email
form. All you need is HTML and to know that every visitor
who uses the form has their default email agent defined so
that the browser can invoke it, and that their browser
supports the "mailto" protocol, and that they don't mind
allowing your form to send their information via email.

If you're willing to believe that all of those are true,
all you need is something like this. Again, there is
no Java or Javascript involved at all:

<html>
<body>
<form action="mailto:yo*@yourdomain.com"
method="post"
enctype="text/plain">
<input name="alpha"><br>
<input name="beta"><br>
<select name="gamma">
<option>one</option>
<option>two</option>
</select>
<input type="submit">
</form>
</body>
</html>

Jul 20 '05 #5
just one thing! how to i add some more boxes and add labels to them so
people no what to type in them and edit the text in the drop down menu

"Lee" <RE**************@cox.net> wrote in message
news:bn********@drn.newsguy.com...
Eagle35 said:

hi all

im new to the whole java thing and need some help!

im trying to make an e mail form and when i test it, it sends the e mail tothe designated e mail address but when i go to the e mail account i sent itto it doesnt have any info that should have been submitted

all i get in the e mail is: name=

im using the following e mail form template: JavaFile.com e-mail form

Thanks for any help you can offer!


It's probably not a good idea to use code from a site that
refers to them "Java Scripts". It suggests that the author
doesn't really understand that Javascript has nothing at all
to do with Java.

There is no Javascript or Java required to create an email
form. All you need is HTML and to know that every visitor
who uses the form has their default email agent defined so
that the browser can invoke it, and that their browser
supports the "mailto" protocol, and that they don't mind
allowing your form to send their information via email.

If you're willing to believe that all of those are true,
all you need is something like this. Again, there is
no Java or Javascript involved at all:

<html>
<body>
<form action="mailto:yo*@yourdomain.com"
method="post"
enctype="text/plain">
<input name="alpha"><br>
<input name="beta"><br>
<select name="gamma">
<option>one</option>
<option>two</option>
</select>
<input type="submit">
</form>
</body>
</html>

Jul 20 '05 #6
Eagle35 wrote:
yer i tried this and it works! all the info is sent by a email!


So your system happens to be configured in a way in which it works, not all
your visitors will be so lucky.

http://www.isolani.co.uk/newbie/mailto.html

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #7
Eagle35 wrote:
just one thing! how to i add some more boxes and add labels to them so
people no what to type in them and edit the text in the drop down menu


http://www.allmyfaqs.com/faq.pl?How_to_post
http://www.htmlcodetutorial.com/forms/

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #8
Lee
David Dorward said:

Lee wrote:
<form action="mailto:yo*@yourdomain.com"


... that is too unreliable to use in a production environment.


Yes. I tried to give that impression.

Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
0
by: Shawn | last post by:
I am getting the following error with a Java Applet being served out by IIS over HTTPS/SSL using a Verisign certificate: java.lang.NoClassDefFoundError: javax/help/HelpSetException at...
0
by: Martin | last post by:
Hi All, I am a relative newbie to Java / Applets, but am despirately after some help ! I have got the following code, which is basically a listing with button items along the sides, allowing...
73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
16
by: Thomas G. Marshall | last post by:
This message is sent to these newsgroups because they are no longer valid: comp.lang.java comp.lang.java.api comp.lang.java.bugs comp.lang.java.misc comp.lang.java.setup comp.lang.java.tech
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: daniel li | last post by:
I got another convert issue. This is the same project as I posted yesterday, and received a perfect response. The conversion threw a SupportClass for me and one of the data type is...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
6
by: Rhino | last post by:
I'm trying to debug a simple Java UDF written in the DB2General style within Eclipse. I'm getting a java.lang.UnsatisfiedLinkError when I execute the set() method in the UDF. I know that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.