note 106940 deleted from faq.html by tularis
| From: | tularis@php.net | Date: | Thu, 22 Dec 2011 20:36:32 +0000 |
| Subject: | note 106940 deleted from faq.html by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185211@lists.php.net to get a copy of this message | ||
Note Submitter: kuky
Reason: non-english
----
<?php session_start(); //problema nu e corecta pt ca apare doar un set de date introduse de user
if(isset($_POST['submit']))
{
$_SESSION['nume']=$_POST['nume'];
$_SESSION['prenume']=$_POST['prenume'];
$_SESSION['varsta']=$_POST['varsta'];}
?>
<html>
<head>
<title>Subiectul 1 de la examen</title>
</head>
<body>
<h2>Formular de introducere a datelor</h2>
<form method="post" action="">
<p>Nume: <input type="text" name="nume"></p>
<p>Prenume: <input type="text" name="prenume"</p>
<p>Varsta: <input type="text" name="varsta"></p>
<input type="submit" name="submit" value="Submit">
</form>
<br>
<table border='1'>
<tr><th>Nume</th><th>Prenume</th><th>Varsta</th></tr>
<tr><td><?php print $_SESSION['nume'] ;?></td>
<td><?php print $_SESSION['prenume'] ;?></td>
<td><?php print $_SESSION['varsta'];?></td></tr>
</table>
</body>
</html>