...

View Full Version : Form submitting Problem



mw2005
08-14-2005, 09:56 AM
When you enter data into all three input fields and click submit it opens your email but doen't write any information into the body of the email. How can i fix this?

Any help will be appreciated,
Thanks in Advance,
MW2005


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title>###### - Contact Us</title>
<body onload="document.agreeform.reset()">

<script type = "text/JavaScript" src = "validation.js">
</script>
<LINK href="form.css" rel="stylesheet" type="text/css">
</style>

</head>

<body>
<form name="agreeform" method="post" enctype="text/plain" action='mailto:########@#######.com'>

<label for="name">First Name</label>
<input type="text" name = "name" value=""/>
<br />

<label for="email">Email Address:</label>
<input type="text" name="email" value="" onChange="javascript:this.value=this.value.toLowerCase();"/>
<br />

<label for="query">Message</label>
<textarea name="query"></textarea>
<br />

&nbsp;&nbsp;&nbsp;<input type="submit" value="Submit!" id="submitbutton"/>

</form>

</body>
</html>

SubJunk
08-15-2005, 02:54 AM
This won't work even if you did the right coding, you shouldn't do it anyway. IE doesn't insert content into e-mails. Many people use hotmail, gmail etc so it's hard for a browser to tell where to put the text. A direct form submittal would work.

mw2005
08-15-2005, 08:09 AM
My server doesn't allow me to use any server-side scripts. Is there any way i can do it without opening the email client and without using any server-side languages?

Thanks in Advance,
MW2005

iota
08-15-2005, 09:07 AM
If you're in such situation , the code like the following one will best suit your need, I think :)

eg.



<a href="mailto:contact@CF.net, contact1@CF.net?subject=Mailto Test Subject text&cc=contact3@CF.net&bcc=contact4@CF.net&body=Test mailto body message">Test Mailto Link</a>

mw2005
08-15-2005, 03:15 PM
Thanks for that but i would prefer using a form, is there any way you can fix the form that i made using HTML?

Thanks in Advance
MW2005



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum