Advertisement

07.02.2008 at 02:50AM PDT, ID: 23532962
[x]
Attachment Details

Form details to email address

Asked by motolanix1 in SendMail Email Server, Hypertext Markup Language (HTML), Email Protocols

Hi there,

I have got a simple form and i want to email the form details to an email address. I have used the mailto function to send the details but it it not very secure. How can i send my details more securely and is there a better language i can use or a file i need to have installed on my machine.  I am using html and javascript. Please see code below.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Form</title>
<script language="JavaScript" type="text/javascript">

function Validate_form(){

valid = true;

if(document.form1.fname.value==""){

alert("Please enter your 'First Name'")
                                          
                        valid = false;
}


if(document.form1.lname.value==""){

alert("Please enter your 'Last Name'")
                                          
                        valid = false;
}

return valid;
}

</script>
</head>

<body>
<form name="form1" method="Post" action="mailto:bob213@hotmail.com" enctype="text/plain" >
FirstName: <input type="text" name="fname" value=""><br>
LastName: <input type="text" name="lname" value=""><br>

<p><input type="submit" name="send" value="Sumbit"></p>
</form>

</body>
</html>
Start Free Trial
[+][-]07.02.2008 at 03:46AM PDT, ID: 21914983

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SendMail Email Server, Hypertext Markup Language (HTML), Email Protocols
Sign Up Now!
Solution Provided By: fosiul01
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.02.2008 at 04:21AM PDT, ID: 21915147

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628