Salve
ho un problema con un forum di invio email
Il form funziona perfettamente ma quando ricevo la mail mi arriva senza oggetto
Come devo fare per ricevere la mail con il campo oggetto compilato automaticamente ad esempio con "form prenotazione"?
Ecco il codice
grazie
<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline }
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' deve essere valida.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' necessaria.\n'; }
} if (errors) alert('Inserire email valida:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF text="#333333" link="#000000" vlink="#000000" alink="#000000">
<div align="center">
<table width="715" border="0" cellpadding="0" cellspacing="0" height="500" bgcolor="#FFFFFF">
<tr>
<td width="63%" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="40%" align="center">
<tr>
<td width="100%">
<form action="formcdosys4.asp" method="post" name="form1" onSubmit="MM_validateForm('email','','RisEmail');r eturn document.MM_returnValue">
<table width="504" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1" color="#333333">Nome
*</font>[/b]</td>
<td><font face="Verdana" size="1" color="#333333"><input name="nome" size="20"></font></td>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1" color="#333333">Cognome
*</font>[/b]</td>
<td><font face="Verdana" size="1" color="#333333">
<input name="cognome" size="20"></font></td>
</tr>
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1">
Indirizzo</font>[/b]</td>
<td>
<font color="#333333" size="1" face="Verdana">
<input name="indirizzo" size="20"></font></td>
<td><font size="1" face="Verdana">Cap</font></td>
<td>
<font face="Verdana" size="1" color="#333333">
<input name="cap" size="20"></font></td>
</tr>
<tr>
<td><font size="1" face="Verdana">Città</font></td>
<td>
<font color="#333333" size="1" face="Verdana">
<input name="citta" size="20"></font></td>
<td>
<font size="1" face="Verdana">Provincia</font></td>
<td>
<font face="Verdana" size="1" color="#333333">
<input name="provincia" size="20"></font></td>
</tr>
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1" color="#333333">Telefono
*</font>[/b]</td>
<td>
<font color="#333333" size="1" face="Verdana">
<input name="tel" size="20"></font></td>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1" color="#333333">E-mail
*</font>[/b]</td>
<td><font face="Verdana" size="1" color="#333333">
<input name="email" size="20"></font></td>
</tr>
<tr>
<td></td>
<td colspan="3"></td>
</tr>
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1">
Tipo Stanza</font>[/b]</td>
<td colspan="3"><font face="Verdana" size="1"><select name="Tipo stanza">
<option value="singola">singola</option>
<option value="doppia">doppia</option>
<option selected>scegli opzione</option>
</select></font></td>
</tr>
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1">
Letto aggiunto</font>[/b]</td>
<td colspan="3">
<label>
<font face="Verdana" size="1">
<input type="radio" name="letto aggiunto" value="si">
</font>
</label>
<font size="1" face="Verdana">
</font>
</p></td>
</tr>
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1">
Nr adulti</font>[/b]</td>
<td colspan="3"><font face="Verdana" size="1"><select name="adulti">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option selected>scegli opzione</option>
</select></font></td>
</tr>
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1">
Nr bambini</font>[/b]</td>
<td colspan="3"><font face="Verdana" size="1">
<select name="bambini">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option selected>scegli opzione</option>
</select></font></td>
</tr>
<tr>
<td></td>
<td colspan="3"></td>
</tr>
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#333300">
Dal giorno (gg/mm/aa) </font> </td>
<td colspan="3">
<font color="#333333" size="1" face="Verdana">
<input name="dal" size="20"></font></td>
</tr>
<tr>
<td height="22"><font color="#333300" face="Verdana, Arial, Helvetica, sans-serif" size="1">
Al giorno (gg/mm/aa)</font></td>
<td colspan="3" height="22">
<font color="#333333" size="1" face="Verdana">
<input name="al" size="20"></font></td>
</tr>
<tr>
<td></td>
<td colspan="3"></td>
</tr>
<tr>
<td><strong style="font-weight: 400">
<font face="Verdana" size="1">Richieste particolari</font>[/b]</td>
<td colspan="3">
<font face="Verdana" size="1" color="#333333">
<textarea name="messaggio" rows="5" cols="33" wrap="VIRTUAL"></textarea>
</font> </td>
</tr>
<tr>
<td colspan="4">
<p align="center"><font color="#ff0000" face="Verdana, Arial, Helvetica, sans-serif" size="1"><font color="#333300">Ai sensi della Legge
675/96 sulla tutela dei dati personali, autorizzo
a trattare i dati da me inviati perattività legate
esclusivamente all'oggetto della richiesta.</font>
</font></td>
</tr>
</table>
<p align="center">
<font size="1" color="#333333" face="Verdana, Arial, Helvetica, sans-serif">
<input type="submit" name="Submit" value="Invia">
</font> </p>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>

Rispondi quotando
