<?php { $_SESSION['test']=$_POST['telefon']; } ?> <form action="test.php" method="post"> <table> <tr> <td>Telefon</td> <td><input type="text" name="telefon" value="<?php echo htmlspecialchars($_SESSION['test']); ?>" /></td> </tr> </table> <input type="submit" name="dalej" value="dalej" /> </form>
Dlaczego, jesli w polu telefonu wpisze cos co sie zaczyna od nawiasu to po zatwierdzeniu formularza mi tego nie wyswietla, np. (22) 123 12 12 ?