Exemple #1
0
function IncreaseBet(val){
    var total = parseFloat(document.getElementById('bet').value);
	total += val;
	document.getElementById('bet').value = total;
}
</script>

<?php 
//diamonds,clubs,hearts,spades
//Modulo 13 to get a value from a card
//Div 13 to get the suit of a card
require "class.Deck.php";
require "class.Poker.php";
$MyDeck = new Deck();
$MyDeck->Deal(5);
$Hand = $MyDeck->GetHand();
$_SESSION['Hand'] = $Hand;
if (isset($_POST['deal'])) {
    echo "<pre>";
    print_r($_POST);
    $_SESSION['bet'] = $_POST['bet'];
    $_SESSION['Hand'] = $_POST['Hand'];
    print_r($_SESSION);
}
echo "<pre>";
print_r($_SESSION);
?>
<body>
<form action="index.php" method="post">
	<table>