In this video , you will be able to learn how to add captcha in your form in codeigniter.
Part 1 link:
• How to add Captcha in CodeIgniter | Captch...
git hub link for complete :(Only view and controller)
https://github.com/sushma-singh-yadav...
Steps:
Create a refresh button
Create a div/span with id for captcha image
span id="Captcha-image"
?php //echo $captcha_image;?
/span
Create a function (getNewCaptcha) in script , call ajax in that
After that pass the controller function you are creating captcha in.
Last show that in id for image
function getNewCaptcha() {
// body...
$.ajax({
url:"?php echo base_url('home/getNewCaptcha');?",
success:function(response)
{
$('#Captcha-image').html(response);
}
});
}
#codegniter #knowledgethrusters
Sur cette page du site, vous pouvez voir la vidéo en ligne Refresh Captcha in CodeIgniter using Ajax | Part -2 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Knowledge Thrusters 13 mars 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,671 fois et il a aimé 24 téléspectateurs. Bon visionnage!