473,944 Members | 17,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2119
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"><b r>
<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.co m...
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"><b r>
<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.co m...
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"><b r>
<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
9886
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 ********************************** package Celcom.Client;
0
4520
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 java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.newInstance0(Class.java:276) at...
0
1797
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 the items in the list to be moved up/down etc. Obviously, for the top and bottom items, the appropriate move up /
73
8143
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 as a standard portable part of the core language, the LISP package, and the java.lang package, respectively. Both have big integers, although only LISP has rationals as far as I can tell. Because CL supports keyword arguments, it has a wider range...
16
3986
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
9310
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
0
3689
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 CollectionSupport, this is to my understanding to replace Java.Util.Collection. In my code: public EcomWeb.rx_transactions.order.GroverOrder getGroverOrders(EcomWeb.domain.WebOrder webOrder) { System.Console.Out.WriteLine("OrderFactory. getGroverOrders( )...
1
9690
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
6
2450
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 UnsatisfiedLinkError has something to do with a DLL that is not visible but I'm not sure why I'm having the problem given that both db2java.zip and db2jcc.jar are visible on my classpath and each of them contain the COM.ibm.db2.app.UDF class with a...
0
11548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11140
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11317
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10679
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9871
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7402
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4927
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4519
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.