ciauz,
il mio problema è il seguente:
ho un form con campi obbligatori che mi funzionava su hosting con php4, ma che nn mi funziona più su hosting con php5...
in pratica cliccando sul tasto 'invia' il risultato è sempre l'invito a tornare indietro e compilare correttamente il form (i cui campi sono tutti obbligatori)...

i file utilizzati sono questi:

CONFIGURA.PHP
<?
$tua_email = "info@nomesito.it";

$campo2 = "Nome";
$lunghezza_campo2 = "40";
$lunghezza_max_campo2 = "50";

$campo3 = "Cognome";
$lunghezza_campo3 = "40";
$lunghezza_max_campo3 = "50";

$campo_messaggio = "Testo";
$colonne_textarea = "44";
$righe_textarea = "9";

$messaggio_inviato ="Grazie per aver compilato il nostro form.";
$ora = date ("h:i:s A");
$data = date ("d:m:Y");
$messaggio = stripslashes($messaggio );
$campo2 = stripslashes($campo2 );
$secondo = stripslashes($secondo );
$campo3 = stripslashes($campo3 );
$terzo = stripslashes($terzo );
?>

-------------------------

FORM.PHP
<?
require ("configura.php");
?>
<form name="form" method="post" action="replay.php">
<table>
<tr>
<td><? echo $campo2 ?>:</td>
<td><input name=secondo size="<? echo $lunghezza_campo2 ?>" maxlength="<? echo $lunghezza_max_campo2 ?>"></td>
</tr>
<tr>
<td><? echo $campo3 ?>:</td>
<td><input name=terzo size="<? echo $lunghezza_campo3 ?>" maxlength="<? echo $lunghezza_max_campo3 ?>"></td>
</tr>
<tr>
<td><? echo $campo_messaggio ?>:</td>
<td><textarea name="messaggio" cols="<? echo $colonne_textarea ?>" rows="<? echo $righe_textarea ?>" wrap="VIRTUAL"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="Submit" value="Invia">
<input type="reset" name="Submit2" value="Cancella">
</td>
</tr>
</table>
</form>

-------------------------

REPLAY.PHP
<?
require ("configura.php");
?>
<?
if ($secondo == "" || (eregi("[0-9]", $secondo )))
{
echo "<table>
<tr>
<td>
Attenzione! Non hai compilato il campo $campo2

<a href=\"#\" onclick=\"history.go(-1)\">Torna indietro</a>
</td>
</tr></table>" ;

}
elseif ($terzo == "" || (eregi("[0-9]", $terzo )))
{
echo "<table>
<tr>
<td>
Attenzione! Non hai compilato il campo $campo3

<a href=\"#\" onclick=\"history.go(-1)\">Torna indietro</a>
</td>
</tr></table>" ;

}
else
{
echo "<table>
<tr>
<td>
$messaggio_inviato
</td>
</tr></table>";

mail("$tua_email ","titolo oggetto email",

"Inviato da: $secondo $terzo
il $data alle ore $ora
------------------------------------------------
$campo2 : $secondo
$campo3 : $terzo
$campo_messaggio : $messaggio ", "From: $secondo $terzo ");
}
?>
come posso correggere lo script per il php5???

grazie,