okay so now that I have that problem done I HAVE ANOTHER problem

I promise... I really do try to figure these things out on my own.
The problem is, once the form is displayed, the variables are not being passed to the form action script page.
Here is my coding.
Code: Select all
<? require 'important.php'; ?>
<HTML>
<HEAD>
<TITLE>CrazyExchange.net - Surfing for credits</TITLE>
<script>
<!--
var timeout = 1000; var num = 0; var na = "e;00"e;; var secs = 10;
function go(which){na = secs;
if (secs < 10) { na = "e;0"e; + na }
document.getElementById("e;timerbox"e;).innerHTML = na;
secs = secs - 1
if (secs+1 > 0) { setTimeout("e;go();"e;,timeout); }
if (secs+1 < 1) { document.getElementById("e;timerbox"e;).style.display='none'; showForm(which); }
}
function showForm(which) {
showit = window.setTimeout(function() { which.style.display='block' }, '10000');
}
-->
</script>
</HEAD>
<BODY onLoad="e;go(); showForm(document.getElementById('countDownText'));"e; BGCOLOR="e;#666666"e; LEFTMARGIN="e;0"e; TOPMARGIN="e;0"e; onContextMenu="e;return false;"e;>
<table width="e;100%"e; cellspacing="e;0"e; cellpadding="e;3"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;100%"e;>
<table border="e;1"e; bordercolor="e;#000000"e; cellspacing="e;0"e; cellpadding="e;3"e; width="e;100%"e;>
<tr>
<td bgcolor="e;#999999"e; valign="e;top"e; width="e;20%"e;>
<font color="e;white"e; size="e;2"e; face="e;tahoma"e;>Welcome, <B><? echo $theuser; ?></B><BR>
</td>
<td valign="e;top"e; bgcolor="e;#999999"e; width="e;20%"e;>
<div id="e;timerbox"e; display:block"e;></div>
<div id="e;countDownText"e; z-index:0; style="e;display: none"e;>
<font color="e;#FFFFFF"e; size="e;2"e; face="e;tahoma"e;>
<form action="e;surf.php"e; method="e;post"e;>
<input type="e;hidden"e; name="e;action"e; value="e;anticheat"e;>
<?
$rand1 = rand(0,9);
$rand2 = rand(0,9);
$random = $rand1.$rand2;
$randb1 = rand(0,9);
$randb12 = rand(0,9);
$button1 = $randb1.$randb12;
$randb2 = rand(0,9);
$randb22 = rand(0,9);
$button2 = $randb2.$randb22;
$randb3 = rand(0,9);
$randb32 = rand(0,9);
$button3 = $randb3.$randb32;
$randb4 = rand(0,9);
$randb42 = rand(0,9);
$button4 = $randb4.$randb42; ?>
To continue click: <B><? echo $random; ?></B><BR><BR>
<? $buttonsarray = array("e;$random"e;,"e;$button1"e;,"e;$button2"e;,"e;$button3"e;,"e;$button4"e;);
shuffle($buttonsarray);
$anticheatbabble = "e;randomanticheatbabblehere"e;;
?>
<input type="e;hidden"e; name="e;random"e; value="e;<? echo md5($random.$anticheatbabble); ?>"e;>
<? foreach($buttonsarray as $button) {
echo "e;<input type=\"e;submit\"e; name=\"e;cheat\"e; value=\"e;$button\"e;> "e;; } ?>
</form>
</font>
</div>
</td>
<td valign="e;top"e; bgcolor="e;#999999"e;><? require 'bannerrotation.php'; ?><BR>
<a href="e;profile.php?u=<? echo $_COOKIEї'theuser']; ?>"e; target="e;_blank"e;><u><font color="e;#FFFFFF"e; size="e;2"e;><B>My Account</B></font></u></a> <font color="e;#FFFFFF"e; size="e;2"e;><B>|</B></font> <a href="e;buycredits.php"e; target="e;_blank"e;><font color="e;#FFFFFF"e; size="e;2"e;><B>Buy Credits</B></font></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Script Action Page
Code: Select all
<? require 'important.php';
if($_POSTї'action'] == "e;anticheat"e;){
if($_POSTї'random'] == md5($_POSTї'cheat'].$anticheatbabble)){
echo "e;You have pressed the correct button"e;; } ELSE {
echo "e;You pressed the wrong button"e;; die(); } } ?>
The form seems to send the form info to the right page, but none of the variables are being passed, even when I try to echo them to the page.
feyd | Please review how to post code using Code: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]