is this the whole pages code? If so, you are missing the <form> tags and so on...
Andrew
Moderators: macek, egami, gesf
<?php
echo "<form action=\"validate.php\" method=\"post\">";
srand((double)microtime()*1000000);
$rnd1=rand(1,3);
$x1=$rnd1;
echo "<INPUT TYPE=\"hidden\" NAME=\"x1\" VALUE=\"$x1\">";
echo '<input type=submit value=go>';
echo '</form>';
?>
#validate.php page
echo "The value received x1:".$_POST['x1'];

Users browsing this forum: No registered users and 1 guest