hi,
This is the code
[code]<?PHP
session_start();
$_SESSION[‘cash’] = 15000;
if(isset($_POST['play'])){
$win = 2 * 5 * 1000;
$lose = 15 * 1000;
$_SESSION['cash'] = ($_SESSION['cash'] + $win) - $lose;
}
echo “<FORM METHOD=post ACTION=“try1.php” NAME=try>\n”;
echo “
”;
echo “You have cash :” .$_SESSION[‘cash’]. " ";
echo “<INPUT TYPE=submit NAME=play VALUE=“Play”>”;
?>
I want everytime I click that play button will make that $_SESSION[‘cash’] value keep updating
how to make that ?