Jump to content

acidglitter

Members
  • Posts

    355
  • Joined

  • Last visited

    Never

Everything posted by acidglitter

  1. thats awesome. thanks! :) i shortened it all to one page and it works, but im wondering if spammers could get through it because of how i changed it? and where should the $rand be md5'd? on page 1 or 2? [code]<?php if(!$_GET['p']==2){ $alphanum="ABCDEFGHJKLMNPQRTWXYZ2345689"; $rand=substr(str_shuffle($alphanum), 0, 4); $random=md5($rand); echo "<form action=\"kk.php?p=2\" method=\"post\"> $rand<br /> <input type=\"text\" name=\"human\" size=\"5\" /> <input type=\"hidden\" name=\"random\" value=\"$random\"> <input type=\"submit\" value=\"Submit\" /></form>"; } else { $random=$_POST['random']; $human = $_POST["human"]; if (md5($human) != $random) {      echo "Invalid human verification image entry!"; } else {      echo "Validation passes"; } } ?>[/code]
  2. i have a form at my website and i don't want it to get abused by spam. i was thinking maybe i should have a verification thing where you have to enter the 5 or 6 random numbers that show up. how could i do that?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.