Ciao a tutti, volevo chiedervi come posso fare per sostituire tutti gli invi che sono stati
scritti in una textarea con dei
?
Ho provato cosi' ma non sostituisce niente.
<script language="javascript" type="text/javascript">
<!--
function checkForm()
{
if (document.action.customerSRVMOT.value==""){
alert("Motivo della chiamata obbligatorio");
document.action.customerSRVMOT.focus();
return false;
}
contenuto_testo=document.getElementById("customerS RVMOT").value;
contenuto_testo=contenuto_testo.replace(/\n/g,"
");
document.getElementById("customerSRVMOT").innerHTM L=contenuto_testo; }
//-->
</script>
Lo richiamo al momento della registrazione cosi:
print '<form name="action" onsubmit="return checkForm();" action="srvrq9.php?
customerSRVCLI=' . $customerSERCLI . '&customerSRVPER=' . $customerSRVPER . '
&customerSRVMOD=' . $customerSERMOD . '&customerSRVNSP=' . $customerSERNSP . '
&customerSRVPRO=' . $customerSERPRO . '&customerSRVVER=' . $customerSERVRS . '
&customerSERREL=' . $customerSERREL . '&customerSERBLD=' . $customerSERBLD . '
&customerSERASP=' . $customerSERASP . '&customerSRVSRN=' . $customerSERSRN . '
&customerSRVEMA=' . $customerSRVEMA . '&customerSRVMOT=' . $customerSRVMOT . ' &customerSRVPMO=' . $customerPRMMOD . '&customerSRVVRM=' . $customerPRMVER . '
" method="POST">';
<input type="submit" name="action" value="Registra " /></form>
Cosa devo modificare?
Ciao grazie