Jump to content

Captcha Help


uisneach

Recommended Posts

hello eb :),

I am newbie and I am bound to insert a captcha in my php pages

Anyoine might give me a clue ? It' s first time i do it.

I have to insert it in the php page where ther is the form?

after this for example?

 

  <br />

  <select name='question'>

  <option value='yes'>yes</option>

  <option value='no'>no</option>

 

</select>";

  echo "do you travel often?<br />

  <br />

  <input name='submit' type='submit' value='send' />

 

  <input type='hidden' name='submitted' value='yes' />

???

*****here the captcha??****************

 

  </form>";

 

thanks in advance

?>

Link to comment
https://forums.phpfreaks.com/topic/128961-captcha-help/
Share on other sites

Try this..I hope this will help you

function capthca_id(){
$allowed = "ABCDEFGHJKLMNPQRSTUVWXYZ123456789abcdefghjklmnpqrstuvwxyz";	
$Max = 5;	
$length = strlen($allowed);	
mt_srand((float)microtime() * 100000);	
$unique = "";	
for($i=0; $i<$Max; $i++)	{
	$unique .= $allowed[mt_rand(0, $length-1)];
}	
return $unique;
}

Link to comment
https://forums.phpfreaks.com/topic/128961-captcha-help/#findComment-668584
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.