I just realived i missed abit of the code out lol:
<input type=hidden name=price value=70>
<input type=submit Value=Submit>
<?php
} else {
$userlist = file("users.inc.php");
$done = false;
$auth = false;
$found = false;
$i = 0;
while ((!$found) && ($i<count($userlist))) {
$i++;
list($n,$p,$a,$e,$g,$s,$m) = explode(':',$userlist[$i]);
$found = ($n==$user);
} if ($m >= 1) <wat to put here>
$userlist[$i] = implode(':',array($n,$p,$a,$e,$g,$s,$m));
$fd = fopen("users.inc.php","w");
fputs($fd,"<?php die(\"Access restricted\"); ?>\n");
for ($i=1; $i<count($userlist); $i++) {
fputs($fd,chop($userlist[$i])."\n");
}
fclose($fd);
echo "<center><b>Thanxs for your purchase";
}
?>
What do i add to make it take away the 70 and store it? and what do i add to put my: ($m == 0) {
echo "You have no money<br>";
}
Thanxs for ur help