G
G. Morgan
<I don't have access to a server-side app. so this must be done client side.>
How do I get:
(thebody)+(dropdown) to appear on their own lines in the resulting email?
I've tried the \n switch in every concievable way but I can't get them on
seperate lines.
Thanks.
CODE:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title>Feedback Form</title>
<script>
function now()
{
var thebody=document.testform.thebody.value;
var dropdown=document.testform.dropdown.value;
window.location.href="mailto:[email protected]?subject=Mail Test&body=" +
(thebody)+(dropdown);
}
</script>
</head>
<body>
<form name=testform>
<br>
<textarea name=thebody>
This is test.
</textarea>
<br>
<select size="1" name=dropdown>
<option value="yes">yes</option>
<option value="no">no</option>
</select> choose yes or no.</p>
<br>
<input type=button value="click me" onclick="now()">
</form>
</body>
</html>
How do I get:
(thebody)+(dropdown) to appear on their own lines in the resulting email?
I've tried the \n switch in every concievable way but I can't get them on
seperate lines.
Thanks.
CODE:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title>Feedback Form</title>
<script>
function now()
{
var thebody=document.testform.thebody.value;
var dropdown=document.testform.dropdown.value;
window.location.href="mailto:[email protected]?subject=Mail Test&body=" +
(thebody)+(dropdown);
}
</script>
</head>
<body>
<form name=testform>
<br>
<textarea name=thebody>
This is test.
</textarea>
<br>
<select size="1" name=dropdown>
<option value="yes">yes</option>
<option value="no">no</option>
</select> choose yes or no.</p>
<br>
<input type=button value="click me" onclick="now()">
</form>
</body>
</html>