Refresh Captcha in CodeIgniter using Ajax | Part -2

Pubblicato il: 13 marzo 2021
sul canale di: 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


In questa pagina del sito puoi guardare il video online Refresh Captcha in CodeIgniter using Ajax | Part -2 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Knowledge Thrusters 13 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,671 volte e gli è piaciuto 24 spettatori. Buona visione!