note 106945 added to features.sessions
| From: | kuky at osu1 dot php dot net | Date: | Tue, 20 Dec 2011 07:44:30 +0000 |
| Subject: | note 106945 added to features.sessions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185174@lists.php.net to get a copy of this message | ||
on example of session:
<?php session_start(); //it appears just one set of dates
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>
----
Server IP: 69.147.83.197
Probable Submitter: 82.137.15.55
----
Manual Page -- http://www.php.net/manual/en/features.sessions.php
Edit -- https://master.php.net/note/edit/106945
Del: integrated -- https://master.php.net/note/delete/106945/integrated
Del: useless -- https://master.php.net/note/delete/106945/useless
Del: bad code -- https://master.php.net/note/delete/106945/bad+code
Del: spam -- https://master.php.net/note/delete/106945/spam
Del: non-english -- https://master.php.net/note/delete/106945/non-english
Del: in docs -- https://master.php.net/note/delete/106945/in+docs
Del: other reasons-- https://master.php.net/note/delete/106945
Reject -- https://master.php.net/note/reject/106945
Search -- https://master.php.net/manage/user-notes.php