Jump to content
php.lv forumi

sesijas


Gizmo

Recommended Posts

<?php 
session_start(); 
header("Cache-control: private");
  $name = $_POST['name']; 
  $_SESSION['name'] = $name; 
?> 
Welcome to my website <strong><? echo $_SESSION['name']; ?></strong>!<br /> 
Let's see what happens on the <a href="page3.php">next page.</a><br /><br />

Kapeec pirmajam kodam man apakšā izdrukā $name, bet naakamajaa nee?

<?php 
session_start(); 
header("Cache-control: private");
?> 
Hey <strong><? echo $_SESSION['name']; ?></strong> Everything is still working!<br /><br />

Link to comment
Share on other sites

×
×
  • Create New...