Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Simple Javascript question
Old 07-18-2006, 08:47 AM Simple Javascript question
Junior Talker

Posts: 1
Name: Todd
Trades: 0
At least I think this will be a simple question for you Javascript masters.

I'm setting up a form on a friend's site that, using javascript, will send the form data to an email address.

Can someone please tell me where it is I add the email address to have the data sent to?

Below is the javascript function, followed by the HTML referencing the javascript.

Thanks in advance for any help!

function Enviar_onclick(){
if ((document.getElementById("nombre").value.length != 0)&&
((document.getElementById("telefono").value.length != 0)||
(document.getElementById("email").value.length != 0) ))
{
document.forms["Formulario"].submit();
}
else{
alert("Es obligatorio introducir el nombre y el número de teléfono o dirección de e-mail.");
}
}



----------


<INPUT TYPE="Button" class="Boton" VALUE="Enviar" onClick="Enviar_onclick()">
skyboysky is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-18-2006, 10:07 AM Re: Simple Javascript question
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Javascript doesn't send emails, you would need a script written using a server-side language to do that, such as ASP or PHP.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to Simple Javascript question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09280 seconds with 12 queries