I hope you can help, i'm trying to make a feedback form that you can select from a dropdown list who receives the feedback, I have got it to work but if then opens it up in an email where i want to to just send, then go to a new page
Can you help
----
<html>
<head>
<title> Feedback page </title>
<script language="JavaScript">
function feedback(toemail,feedname,feedemail,comments){
document.feedbackform.action = "mailto:" + toemail + "?subject=Feedback&body=Feedback from: " + feedname + " ;" + "email: " + feedemail + " ;" + "Comments: " + comments;
document.feedbackform.method = "post";
document.feedbackform.enctype = "text/plain";
}
</script>
</head>
<body>
<p>Feedback page</p>
<hr>
<form name="feedbackform"
onSubmit="feedback(this.fsel.options[this.fsel.selectedIndex].value, this.fname.value, this.femail.value, this.comments.value)">
<p>Enter your name: <input type="text" name="fname" size="20"><br>
Enter your email: <input type="text" name="femail" size="20"><br>
Comments: <textarea name="comments" rows="1" cols="20"></textarea><br>
Comments apply to : <select name="fsel" size="1">
<option value="XX@XX.net" selected>XX@XX.net</option>
<option value="XX@XX.net">XX@XX.net</option>
</select> <br>
<input type="Submit" value="Send your feedback"> </p>
</form>
</body>
</html>
Can you help
----
<html>
<head>
<title> Feedback page </title>
<script language="JavaScript">
function feedback(toemail,feedname,feedemail,comments){
document.feedbackform.action = "mailto:" + toemail + "?subject=Feedback&body=Feedback from: " + feedname + " ;" + "email: " + feedemail + " ;" + "Comments: " + comments;
document.feedbackform.method = "post";
document.feedbackform.enctype = "text/plain";
}
</script>
</head>
<body>
<p>Feedback page</p>
<hr>
<form name="feedbackform"
onSubmit="feedback(this.fsel.options[this.fsel.selectedIndex].value, this.fname.value, this.femail.value, this.comments.value)">
<p>Enter your name: <input type="text" name="fname" size="20"><br>
Enter your email: <input type="text" name="femail" size="20"><br>
Comments: <textarea name="comments" rows="1" cols="20"></textarea><br>
Comments apply to : <select name="fsel" size="1">
<option value="XX@XX.net" selected>XX@XX.net</option>
<option value="XX@XX.net">XX@XX.net</option>
</select> <br>
<input type="Submit" value="Send your feedback"> </p>
</form>
</body>
</html>