Can someone please tell me why the following code generates a new page with
"mailto:wright@ wcc.govt.nz"?Su bject= "RAMM Record Carriageway Resurfacing
Record" Method="POST" enctype="text/plain"
as a single line rather that generation an email?
<HTML>
<TITLE> test</TITLE>
<HEAD>
<script language = "javascript ">
function mailsubject(msu bject){
var mailto = " \"mailto:wright \@wcc.govt.nz\" ?Subject= ";
var subbase = "\"RAMM Record Carriageway Resurfacing Record" + "\"";
var method = " Method=" + "\"POST\"" + " enctype=" +"\"text" + "\/"
+"plain\"";
msub = mailto + subbase + method;
window.status = (msub);
return (msub);
alert(msub);
}
</script>
</HEAD>
<body>
<form name = "resurfacingrec ord" action= 'javascript:mai lsubject();' >
<select name="contract" >
<option value="">Select Contract</option>
<option value="RS-330">RS-330 Northern</option>
<option value="RS-331">RS-331 Southern</option>
</select>
<input type=submit value="Send Record">
</form>
</HTML>
"mailto:wright@ wcc.govt.nz"?Su bject= "RAMM Record Carriageway Resurfacing
Record" Method="POST" enctype="text/plain"
as a single line rather that generation an email?
<HTML>
<TITLE> test</TITLE>
<HEAD>
<script language = "javascript ">
function mailsubject(msu bject){
var mailto = " \"mailto:wright \@wcc.govt.nz\" ?Subject= ";
var subbase = "\"RAMM Record Carriageway Resurfacing Record" + "\"";
var method = " Method=" + "\"POST\"" + " enctype=" +"\"text" + "\/"
+"plain\"";
msub = mailto + subbase + method;
window.status = (msub);
return (msub);
alert(msub);
}
</script>
</HEAD>
<body>
<form name = "resurfacingrec ord" action= 'javascript:mai lsubject();' >
<select name="contract" >
<option value="">Select Contract</option>
<option value="RS-330">RS-330 Northern</option>
<option value="RS-331">RS-331 Southern</option>
</select>
<input type=submit value="Send Record">
</form>
</HTML>
Comment