Ecco il codice..
se non rispondo subito, ci sentiamo domani..
<script language="javascript">
function Close(){
self.close()
}
</script>
<script language="javascript">
function Modulo() {
var prof = document.profilo_utente.p_professione.options[document.profilo_utente.p_professione.selectedInde x].value;
var mese= document.profilo_utente.p_mese.options[document.profilo_utente.p_mese.selectedIndex].value;
var email= document.profilo_utente.p_email.value;
var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
var p_data_nascita;
if (document.profilo_utente.p_gg.value.substring(0,2) > 31) {
alert("Attenzione, errore nella data");
document.profilo_utente.p_gg.select();
return false;
}
else if ((document.profilo_utente.p_aaaa.value < 1900) && (document.profilo_utente.p_aaaa.value != "") ) {
alert("Attenzione, errore nella data");
document.profilo_utente.p_aaaa.select();
return false;
}
else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
alert("Inserire un indirizzo email corretto.");
document.profilo_utente.p_email.select();
return false;
}
else {
p_data_nascita= document.profilo_utente.p_gg.value+"/"+mese+"/"+document.profilo_utente.p_aaaa.value;
document.profilo_utente.action = "prova_invio.asp?p_username=aaa&p_email="+email+"& p_data_nascita="+p_data_nascita;
document.profilo_utente.submit();
self.close();
}
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Profilo Personale</title>
</head>
<style>
.tb_inst{
font:Tahoma;
font-size:30px;
font-weight:bolder;
color:#003399
}
.tb_inst2{
font:Tahoma;
font-size:11px;
font-weight:normal;
color:#003399
}
.td{
font:Tahoma;
font-size:11px;
font-weight:bold;
color:#003399
}
</style>
<body>
<form name="profilo_utente" method="" >
<table width="601" border="0">
<tr>
<td width="595" class="tb_inst">[img]/Img/profilo-personale.gif[/img]</td>
</tr>
<tr>
<td class="tb_inst2">Gentile Utente
compilando il seguente form,ci aiuterà ad offrirLe servizi sempre più
rispondenti alle Sue esigenze professionali.
</td>
</tr>
<tr>
<td height="3"></td>
</tr>
<tr>
<td class="tb_inst2">(*) I campi contrassegnati con l'asterisco sono obbligatori.</td>
</tr>
</table>
<table width="606" border="0">
<tr>
<td colspan="7"><hr></td>
</tr>
<tr>
<td colspan="3" class="td">Cognome</td>
<td width="180" class="td">Nome</td>
<td width="121" align="center" class="td">Data di Nascita</td>
<td colspan="2" align="center" class="td">Sesso</td>
</tr>
<tr>
<td height="25" colspan="3"><input type="text" name="p_cognome" size="30" value="" maxlength=64></td>
<td height="25"><input type="text" name="p_nome" size="30" value="" maxlength=64></td>
<td height="25" align="center" nowrap>
<input type="text" name="p_gg" size="2" value="">
<select name="p_mese">
<option value="">[Mese]</option>
<option value="01">Gennaio</option>
<option value="02">Febbraio</option>
<option value="03">Marzo</option>
<option value="04">Aprile</option>
<option value="05">Maggio</option>
<option value="06">Giugno</option>
<option value="07">Luglio</option>
<option value="08">Agosto</option>
<option value="09">Settembre</option>
<option value="10">Ottobre</option>
<option value="11">Novembre</option>
<option value="12">Dicembre</option>
</select>
<input type="text" name="p_aaaa" size="4" value=""></td>
<td width="53" height="25" class="td"><input type="radio" name="p_sesso" value="F">F</td>
<td width="39" class="td"><input type="radio" name="p_sesso" value="M" checked>M</td>
</tr>
<tr>
<td height="12" colspan="7"></td>
</tr>
<tr>
<td height="15" colspan="7" class="td">Professione</td>
</tr>
<tr>
<td height="15" colspan="7" class="td">
<select name="p_professione" style="HEIGHT: 22px; WIDTH: 194px">
<option value=""></option>
<%
ilfile=server.mappath("prof.txt")
Set file = CreateObject("Scripting.FileSystemObject")
Set ilfile = file.OpenTextFile(ilfile, 1, False)
counter=0
do while not ilfile.AtEndOfStream
counter=counter+1
illine=ilfile.readline
dim spazio
spazio=""
dim val,val2
val=Left(illine,3)
val2=mid(illine,4)
%>
<option value="<%=val%>"><%=val2%></option>
<%
loop
ilfile.Close
set ilfile=nothing
set file=nothing
%>
</select>
</td>
</tr>
<tr>
<td height="12" colspan="5"></td>
</tr>
<tr>
<td colspan="7">
<table>
<td height="17" colspan="3" class="td">E-mail(*)</td>
<td class="td">Telefono</td>
<td class="td">Fax</td>
</tr>
<tr>
<td height="25" colspan="3"><input type="text" name="p_email" size="45" value="" maxlength="128"></td>
<td height="25"><input type="text" name="p_telefono" size="25" value="" maxlength="20"></td>
<td height="25"><input type="text" name="p_fax" size="25" value="" maxlength="20"></td>
</tr>
</table>
</td>
<tr>
<td height="25" colspan="7"><hr></td>
</tr>
<tr>
<td height="12" colspan="5" class="td">La registrazione dà diritto a ricevere informazioni commerciali su prodotti
e servizi di KKKK .
Se non desidera riceverle clicchi nel box di seguito <input type="checkbox" onclick="this.value=(this.checked) ? 'No' : 'Y'; alert(this.value);" value="Y" name="p_privacy"></td>
</tr>
<tr>
<td height="25" colspan="7"><hr></td>
</tr>
<tr>
<td height="12" colspan="7" class="td">Cliccando sul tasto avanti si autorizza il trattamento dei dati personalida parte
di KKKK ai sensi dell´art.13 del D.Lgs. n.196/2003.
Se si vuole visualizzare l’ informativa clicca qui
</td>
</tr>
<tr>
<td height="12" colspan="7" class="td" align="right">
<!--
<input type="submit" name="chiudi" value="Chiudi" class="btb" onClick="javascript:Close()">
<input type="submit" name="Avanti" value="Avanti >" class="btb"></a>
-->
<input type="image" name="chiudi" src="/Img/chiudi.gif" onClick="javascript:Close()">
<input type="image" name="Avanti"src="/Img/avanti.gif" onClick="javascript:Modulo()">
</td>
</tr>
</table>
</form>
</body>
</html>

					
					
					
						
  Rispondi quotando