Re: Hi Lo
Heres a fixed version of deathstar code that decepti0n wanted.
<?php
session_start();
/*
{o(|)o}> Made by DeathStar
*/
$bet = 200;
$money = $_SESSION['money'];
$file=str_replace("/", "", $_SERVER['PHP_SELF']);
if ($_GET['money'] == "true"){
echo "Your money: $ $money
";}
$numb = rand(1,10);
echo "<h1>$numb</h1>
next number higher or lower?
<form action='$file?money=true' method=post><select name=so><option value=1>HIGH</option><option value=2>LOW</option></select>
<input type=submit></form>";
if ($_POST){
$so = $_POST['so'];
$nextnumb = rand(1,10);
if ($nextnumb > $numb && $so==1)
{
$_SESSION['money']+=200;
exit("Correct");
}
if ($nextnumb < $numb && $so==2){
$_SESSION['money']+=200;
exit("Correct
<meta http-equiv='refresh' content='5;url=hilo.php' />");}
else {
print "Sorry :(
<meta http-equiv='refresh' content='5;url=hilo.php' />";}
}
/*
I don't know how this script works, But looks like it wont use database lol
*/
?>
I fixed as much as i can because i can't never fix this script. No offense deathstar i dont know how this works lol