Advertisement
Advertisement
| 04.16.2008 at 01:27PM PDT, ID: 23328768 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: |
<?php
session_start();
; ?>
<html><body><?php
//SNIPPET 1
//this file is called lets_change_session_variable.php
$does_php_work = $_GET['does_php_work'];
if ($does_php_work == "yes") {
$_SESSION['does_php_work'] = "yes";
echo "yes, it works";
echo "<a href='lets_change_session_variable.php?does_php_work=no'>click to change variable to no</a>";
}
else
{
$_SESSION['does_php_work'] = "no";
echo "no, it does not work";
echo "<a href='lets_change_session_variable.php?does_php_work=yes'>click to change variable to yes</a>";
}
; ?>
|