DeanWhitehouse Posted September 11, 2008 Share Posted September 11, 2008 Ok, so this is a unique way i wanted to access some private sections of my site , what i want to is be presented with four radio selections each one a different value , and one of the values is one i will recognise (which is in the array $checks) So far my problem is the fact that when run some of the selection boxes have duplicate numbers in, any advice on this? This is the page http://webstatus.awardspace.info/Personal/ <?php $checks = array("28","08","19","91"); $X = 0; echo ' <form action="" method="post"> '; $new = rand(0,3); $new1 = rand(0,100); $new2 = rand(50,100); $new3 = rand(0,50); $random = array("0","1","2","3"); $arr = array('<input type="radio" name="check" value="'.$checks[$new].'">'.$checks[$new].'','<input type="radio" name="check" value="'.$new1.'">'.$new1.'','<input type="radio" name="check" value="'.$new2.'">'.$new2.'','<input type="radio" name="check" value="'.$new3.'">'.$new3.''); while($X < 4) { $test = rand(0,3); $test1 = $random[$test]; echo $arr[$test1]."<br>"; $X ++; } echo ' <input type="submit" name="go" value="Check"><br> </form> '; } ?> Link to comment https://forums.phpfreaks.com/topic/123768-solved-new-cryptic-login-confusing-style/ Share on other sites More sharing options...
DeanWhitehouse Posted September 11, 2008 Author Share Posted September 11, 2008 Given Up. ??? Link to comment https://forums.phpfreaks.com/topic/123768-solved-new-cryptic-login-confusing-style/#findComment-639342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.