...

View Full Version : Sending form throgh Java



Lawn Gnome
08-19-2005, 04:53 AM
ok i want to send the form to my email but i dont want to to come up with the pop up saying that people are sending the form through email. i tryed to make my own script (did really bad bucuse i dont know what im doing :o ) here is my messed up script. i know this is wrong so no need to tell me i am a moron



<SCRIPT LANGUAGE = "JavaScript">
function sendemail(){
mailto:oo.fun.house.oo@gmail.com
}
</script>
<form method="post">
<input type=text name="test" size="10">
<input type=button onclick="sendemail()">
</form>

JoWiGo
08-19-2005, 05:25 AM
You don't even need javascript for this... just do <form action="mailto:you@email.com">. The submit button would take care of it. But I suggest you read this article: http://lab.artlung.com/other/email-submission-stinks/

JoWiGo
08-19-2005, 05:29 AM
And also, there is a difference between Java and Javascript. They are two completely different languages. Java is used for applications and javascript for web scripting (usually).

Lawn Gnome
08-20-2005, 01:48 AM
ok....hey i want it so that the little popup wont come up, not so i can email it to me!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum