• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with posting a var


Im using Jquery and Autocomplete. It works well if i manage the $_GET['q'] sended by jqeury in a file wich is not in the codeigniter framework.

if i try to manage this var in codeigniter im getting an error:

Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined index: q

Filename: controllers/test.php

Line Number: xx

line number xx is just:

echo $_GET['q'];

if i write on line xx
echo 'test';
it works.

Just if i try to handle the sended var q, im getting error :-( Why?


solved it: http://ellislab.com/forums/viewthread/103439/ helped me.
type: "post", // add this only! must be line ~340

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.