By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,712 Members | 1,591 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,712 IT Pros & Developers. It's quick & easy.

posting a form to email

P: n/a
I've created a simple form for a conf registration, that successfully
validates the form. But then in testing, when you try to submit,
Outlook Express comes up automatically, instead of my own email. And
the content of the form doesn't appear in the body of that Outlook
Express email, either. How do I make it use the correct email? I'm a
newbie, and no one here in my office knows forms but me!

Here's part of the validating (to shorten for ya), and the beginning
of the form. What am I missing? What can I do to solve this problem?

function checkState() {
var complete = true
var state = document.request.state.value;
if ((state == "") || (state == null)) {
alert("Please enter your State.");
document.request.state.focus();
document.request.state.select();
complete = false;
}

function validateForm() {
var validForm=true;
validForm = checkFirstname() && checkLastname() && checkTitle() &&
checkDept() && checkCampus() && checkAddr() && checkCity() &&
checkState() && checkZip() && checkPhone() && checkEmail();
if (validForm){
window.status="The form is valid";
}
return validForm;
}

</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#0000FF">
<h2 align="center">Plan 2008:Educational Quality Through Racial and
Ethnic Diversity</h2><br>
<h2 align = "center">Team Member Registration Form</h2>
<h3 align="left"> "Best Practices in Closing the Achievement
Gap"</h3>

<form name="request" method="post" action="mailto: lr***@uwsa.edu"
enctype="multipart/form-data" onSubmit=" return validateForm()">
<table border="0" cellspacing="0" cellpadding="5" align="left">
<tr>
<td>First Name</td>
<td>
<input type="text" name="firstname" size="25" maxlength="25"
onFocus =" window.status = 'Enter Last Name'; return true;">
</td>
<td width="10">&nbsp;</td>
<td>Last Name</td>
<td>
<input type="text" name="lastname" size="25" maxlength="25"
onFocus =" window.status = 'Enter First Name'; return true;">
</td>
</tr>
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <89**************************@posting.google.com >, Linda
says...
I've created a simple form for a conf registration, that successfully
validates the form. But then in testing, when you try to submit,
Outlook Express comes up automatically, instead of my own email. <form name="request" method="post" action="mailto: lr***@uwsa.edu"


Use a server-side form processor. "mailto:" as a form action doesn't
work. It's bag of pants.

--
Hywel

http://sponsorhywel.org.uk/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.