questo è il codice completo:

pag1:

<?php

session_start();


$_SESSION['authuser'] = 1;

?>

<html>
<head>
<title>Step1</title>
</head>


<body>


<form action="step2.php" method="GET">



Nome1: <input type="text" name="nome1"></p>


Cognome1: <input type="text" name="cognome1"></p>


<input type="submit" name="submit" value="Vai a Step2"></p>

</form>



</body>
</html>


pag2:

<?php

session_start();

?>

<html>
<head>
<title>Step2</title>
</head>


<body>


<form action="step3.php" method="GET">



Nome2: <input type="text" name="nome2"></p>


Cognome2: <input type="text" name="cognome2"></p>


<input type="submit" name="step" value="Vai a Step3"></p>

</form>

<?php

$_SESSION['nome1'] = $_GET['nome1'];
$_SESSION['cognome1'] = $_GET['cognome1'];

?>

</body>
</html>


pag3:
<?php

session_start();

?>

<html>
<head>
<title>Step3</title>
</head>


<body>


<form action="salvastep.php" method="GET">



Nome3: <input type="text" name="nome3"></p>


Cognome3: <input type="text" name="cognome3"></p>


<input type="submit" name="step3" value="Vai alla pagina dei dati"></p>

</form>


<?php

$_SESSION['nome2'] = $_GET['nome2'];
$_SESSION['cognome2'] = $_GET['cognome2'];

?>


</body>
</html>


pag.4:
<?php

session_start();

$_SESSION['nome3'] = $_GET['nome3'];
$_SESSION['cognome3'] = $_GET['cognome3'];

$nome1 = $_SESSION['nome1'];
$cognome1 = $_SESSION['cognome1'];

$nome2 = $_SESSION['nome2'];
$cognome2 = $_SESSION['cognome2'];

$nome3 = $_SESSION['nome3'];
$cognome3 = $_SESSION['cognome3'];



$connessione=mysql_connect("localhost", ");
$selezione_db=mysql_select_db("prova", $connessione);



$inserimento=mysql_query( "insert into NOME (nome1,cognome1,nome2,cognome2,nome3,cognome3) values ( '" . $_POST['nome1'] . "','" . $_POST['cognome1'] . "','" . $_POST['nome2'] . "-" . $_POST['cognome2'] . "-" . $_POST['nome3'] . "', '" . $_POST['cognome3'] . "', now())" );

?>


con errore :

$inserimento=mysql_query( "insert into NOME (nome1,cognome1,nome2,cognome2,nome3,cognome3) values ( '" . $_POST['nome1'] . "','" . $_POST['cognome1'] . "','" . $_POST['nome2'] . "-" . $_POST['cognome2'] . "-" . $_POST['nome3'] . "', '" . $_POST['cognome3'] . "', now())" );



come mai?grazie