- Code: Select all
<script type="text/javascript">
function addSubject(theForm) {
if (theForm.AP.value != '')
{
theForm.action += theForm.AP.value;
return true;
theForm.action += theForm.ProDes.value;
return true;
}
else {
alert('Enter the AP-xxxxxxxx Number!'); return false;}
}
</script>
<body>
<form name="toemail" action="mailto:EMAIL@ADDRESS?subject="" method="POST" onsubmit="return addSubject(this)";>
MN Incident Number<input type="text" name="AP">
MN Incident Number<input type="text" name="ProDes">
<input type="submit" value="Send E-Mail">
How can I get the Subject line to accept both the AP and the ProDes fields?



