PHP Tutorial: Protect your Website with CAPTCHA: Create your own: Part 2

preview_player
Показать описание


In this part we develop the captcha class and implement all the static methods that we will be using. Using the output buffer we return the image base64 encoded into the html file. We test the captcha using a form that requires the user to input the code that appears in the image.

Рекомендации по теме
Комментарии
Автор

you could use
header("Location: destination_url");

DigitalPhantom
Автор

you should use an ajax request you can check the video response to this video it'll show you how to do it.

DigitalPhantom
Автор

Call to undefined function imagetruecolor() - what should I do?

Luxqs
Автор

True, I don't know where I came up with that extra S

DigitalPhantom
Автор

nice video it works
how do you link it to a specific webpage in the event you get a correct input captcha

Dragonrebirthterror
Автор

thanks, big help for me .can i have a code?

keventuresofficial
Автор

Can you please show how to use it with html form?

aArcziMetin
Автор

Is there a reason why I wouldnt be able to see the CAPTCHA picture? I have tried it on 3 different computers all do the same thing.

thalpha
Автор

Great script it's working but I had to comment out the unlink self font at the bottom, no permission.

bitiminicik
Автор

Hy, how can i do for refresh only the captcha and not the whole page.
I added this code in the my page:

"<input type="text" name="code" "
"<img src="<?= captcha::image() "


Thanks

Sym

Sdrello
join shbcf.ru