filmov
tv
Refresh Captcha in CodeIgniter using Ajax | Part -2
Показать описание
In this video , you will be able to learn how to add captcha in your form in codeigniter.
Part 1 link:
git hub link for complete :(Only view and controller)
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
Part 1 link:
git hub link for complete :(Only view and controller)
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