Refresh Captcha in CodeIgniter using Ajax | Part -2

Published: 13 March 2021
on channel: Knowledge Thrusters
1,671
24

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


On this page of the site you can watch the video online Refresh Captcha in CodeIgniter using Ajax | Part -2 with a duration of hours minute second in good quality, which was uploaded by the user Knowledge Thrusters 13 March 2021, share the link with friends and acquaintances, this video has already been watched 1,671 times on youtube and it was liked by 24 viewers. Enjoy your viewing!