Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
Valor que no pasa de AJAX a PHP

En el archivo de vista

 <script type="text/javascript"> function fetch_comp(val){ $.ajax({ type:"POST", url:"<?php echo base_url()?>admin/admin_main/fetchData", data:{'c_name':val}, datatype: "JSON", success: function(data){ var obj = JSON.parse(data); $("#job_description").val(obj.job_description); $("#ctc").val(obj.ctc); $("#location").val(obj.location); } }) } </script>

En el archivo del controlador

 public function fetchData(){ $val = $this->input->post('c_name'); echo "<script>alert('$val');</script>"; }

El valor no se pasa de la página de vista a la página del controlador.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!