ok fatto..
due pagine.
index.html
Codice:
<html>
<head>
<title></title>
</head>
<body>
<FORM action="funzione.php" method="post">
<P>
<LABEL>Nome: </LABEL><INPUT type="text" name="nome"><BR>
<LABEL>Cognome: </LABEL><INPUT type="text" name="cognome"><BR>
<LABEL>Email: </LABEL><INPUT type="text" name="email"><BR>
<LABEL>Telefono: </LABEL><INPUT type="text" name="telefono"><BR>
<LABEL>Fax: </LABEL><INPUT type="text" name="fax"><BR>
<INPUT type="submit" value="Invia"> <INPUT type="reset">
</P>
</FORM>
</body>
</html>
e funzione.php
Codice:
<html>
<head>
</head>
<body>
<?php
$i=1;
$vettore = array($_POST['nome'], $_POST['cognome'], $_POST['email'], $_POST['telefono'], $_POST['fax']);
foreach($vettore as $stringa)
{
echo "Campo ".$i.": ".$stringa."<br>";
$i++;
}
?>
</body>
</html>
tutto perfetto.
solo una cosa.. perchè scrivo "foreach($vettore as $stringa)" ?