If cannot generally be used in HTML (with specific exceptions, this not being one of them). It can generally be used in javascript, try this:
Code:
<form name="example" method="post" action="/lib/common/mailing.asp">
<script type="text/javascript">
function createCC(el){
if (el.value!==''&&!document.getElementById('cctestid')){
var theCC=document.createElement('input');
theCC.name='mailcc';
theCC.value=el.value;
theCC.type='hidden';
theCC.id='cctestid';
el.parentNode.appendChild(theCC);
}
else if (el.value!=='')
document.getElementById('cctestid').value=el.value;
else if (document.getElementById('cctestid'))
document.getElementById('cctestid').parentNode.removeChild(document.getElementById('cctestid'));
}
</script>
<input type="text" name="cc" onchange="createCC(this);">
<input type="hidden" name="mailto" value="my.usual@email.co.uk">
... << the main form elements here >> ...
<input type="Submit" value="Submit">
Bookmarks