Welcome Guest, Not a member yet? Register   Sign In
problem with posting a var
#1

[eluser]Lacsap[/eluser]
Hello.

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:

Code:
echo $_GET['q'];

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

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

Thanks
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB