uisneach Posted October 18, 2008 Share Posted October 18, 2008 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 More sharing options...
aruns Posted October 18, 2008 Share Posted October 18, 2008 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 More sharing options...
uisneach Posted October 18, 2008 Author Share Posted October 18, 2008 Thx really. I tried to insert it in the file , after "form" but nothing changed cheers uisn Link to comment https://forums.phpfreaks.com/topic/128961-captcha-help/#findComment-668591 Share on other sites More sharing options...
Acs Posted October 18, 2008 Share Posted October 18, 2008 Try ReCaptcha http://recaptcha.net/ If you are newbie and need a captcha solution now recaptcha might be what you need and want Link to comment https://forums.phpfreaks.com/topic/128961-captcha-help/#findComment-668625 Share on other sites More sharing options...
uisneach Posted October 25, 2008 Author Share Posted October 25, 2008 Thanks., i will have a glance cheers Link to comment https://forums.phpfreaks.com/topic/128961-captcha-help/#findComment-674348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.