codice:
<center>
<table border="1" bordercolor="#000000" cellpadding="5" width="100%">
<tr>
<td style="text-align: center">
<script language="javascript">
<!--
function Validator(theForm)
{
  // Regular espression per effettuare Trim
re=/\s+$|^\s+/g;
  if (theForm.Nome.value == "")
  {
    alert("Il campo Nome struttura non e' compilato");
    theForm.Nome.focus();
    return (false);
  }
  if (theForm.TipoStruttura.value == "")
  {
    alert("Il campo Tipo di struttura non e' compilato");
    theForm.TipoStruttura.focus();
    return (false);
  }
  if (theForm.Regione.value == "")
  {
    alert("Il campo Regione non e' compilato");
    theForm.Regione.focus();
    return (false);
  }
  if (theForm.Provincia.value == "")
  {
    alert("Il campo Provincia non e' compilato");
    theForm.Provincia.focus();
    return (false);
  }
  if (theForm.Ente.value == "")
  {
    alert("Il campo Ente gestore - Legale rappresentante non e' compilato");
    theForm.Ente.focus();
    return (false);
  }
  if (theForm.Cf.value == "")
  {
    alert("Il campo P.iva/codice fiscale non e' compilato");
    theForm.Cf.focus();
    return (false);
  }
  if (theForm.IndirizzoLeg.value == "")
  {
    alert("Il campo Indirizzo della sede legale non e' compilato");
    theForm.IndirizzoLeg.focus();
    return (false);
  }
  if (theForm.IndirizzoCom.value == "")
  {
    alert("Il campo Indirizzo della comunita' non e' compilato");
    theForm.IndirizzoCom.focus();
    return (false);
  }
  if (theForm.Tel.value == "")
  {
    alert("Il campo Telefono non e' compilato");
    theForm.Tel.focus();
    return (false);
  }
  if (theForm.Email.value == "")
  {
    alert("Il campo Email non e' compilato");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Intervento.value == "")
  {
    alert("Il campo Area di intervento non e' compilato");
    theForm.Intervento.focus();
    return (false);
  }
  if (theForm.Handicap.value == "")
  {
    alert("Il campo Portatori di handicap non e' compilato");
    theForm.Handicap.focus();
    return (false);
  }
  if (theForm.Eta1.value == "" || theForm.Eta2.value == "")
  {
    alert("Il campo Fascia di eta' non e' compilato");
    theForm.Eta1.focus();
    return (false);
  }
  if (theForm.Responsabile.value == "")
  {
    alert("Il campo Nome e cognome del responsabile della comunita' non e' compilato");
    theForm.Responsabile.focus();
    return (false);
  }
  document.location.href = "pag.php?Pag=conf_adesione";
  return (true);
}
//-->
</script>
<form onSubmit="return Validator(this)" method="post" action="adesione2.php" target="_blank">
Nome struttura

<input name="Nome" type="text" size="20" maxlength="255" />


Tipo di struttura

<select name="TipoStruttura">
<option value="" selected></option>
<?
$query = "SELECT * FROM tipo_strutt";
$result = mysql_query($query, $db);
while ($row = mysql_fetch_array($result)) {
$value2 = $row["ID"];
$Titolo2 = $row["Tipo"];
echo "<option value=\"$value2\">$Titolo2</option>
";
}
?>
</select>


Regione

<select name="Regione">
<option value="" selected></option>
<?
$query = "SELECT * FROM regioni";
$result = mysql_query($query, $db);
while ($row = mysql_fetch_array($result)) {
$value = $row["ID"];
$Titolo = $row["Regione"];
echo "<option value=\"$value\">$Titolo</option>
";
}
?>
</select>


Provincia

<input name="Provincia" type="text" size="20" maxlength="255" />


Ente gestore - Legale rappresentante

<input name="Ente" type="text" size="20" maxlength="255" />


P.iva/codice fiscale

<input name="Cf" type="text" size="20" maxlength="255" />



Indirizzo della sede legale

<input name="IndirizzoLeg" type="text" size="20" maxlength="255" />



Indirizzo della comunit&agrave;

<input name="IndirizzoCom" type="text" size="20" maxlength="255" />



Telefono

<input name="Tel" type="text" size="20" maxlength="255" />



Email

<input name="Email" type="text" size="20" maxlength="255" />



Area di intervento

<select name="Intervento">
<option value=""></option>
<option value="Amministrativa">Area Amministativa</option>
<option value="Penale">Area Penale</option>
<option value="Amministrativa/Penale">Area Amministativa/Penale</option>
</select>



Sesso

M <input type="checkbox" name="M" value="1" /> F <input type="checkbox" name="F" value="1" />



Portatori di handicap

S&igrave; <input type="radio" name="Handicap" value="1" /> No <input type="radio" name="Handicap" value="0" />



Fascia di et&agrave; (da - a)

<select name="Eta1">
<option value="" selected="selected"></option>
<option value="0">0</option>
<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 value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
</select> - <select name="Eta2">
<option value="" selected="selected"></option>
<option value="0">0</option>
<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 value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
</select>



Nome e cognome del responsabile della comunit&agrave;

<input name="Responsabile" type="text"  size="20" maxlength="255" />



<input type="submit" name="Invia" value="Invia" /> <input type="reset" name="Cancella" value="Cancella" />
</form>
</td>
</tr>
</table>
</center>
E' possibile passare i dati anche a pag.php?Pag=conf_adesione?