Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Get session variable values
SUBMITTED BY:
henry1874w
DATE:
June 21, 2017, 11:35 p.m.
FORMAT:
Text only
SIZE:
273 Bytes
Raw
Download
Tweet
HITS:
218
Go to comments
Report
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<body>
<?php
// Echo session variables that were set on previous page
echo "Favorite color is " . $_SESSION["favcolor"] . ".<br>";
echo "Favorite animal is " . $_SESSION["favanimal"] . ".";
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus