skip to Main Content

how to pass values from ajax to controller on button click? – Jquery ajax

this is my js code which is executed on button click $("#search_tutor").click(function(){ $("#show_tutors").hide(); var subject = $( ".subject" ).val(); var degree_level = $(".degree_level").val(); var city = $(".city").val(); console.log(subject); console.log(degree_level); console.log(city); $.ajax({ url:"<?php echo base_url(); ?>public_controller/search_tutor_jquery", method:"post", data:{subject: subject, degree_level :…

VIEW QUESTION

Header set cookie not working in shopify extension

I'm working on shopify extension on php codeigniter. 7.1 php version. I'm receiving this error while i'm installing extension on shopify. The app couldn’t be loaded Then i add this code in the default controller: header('Set-Cookie: same-site-cookie=foo; SameSite=Lax'); header('Set-Cookie: cross-site-cookie=bar;…

VIEW QUESTION
Back To Top
Search