[eluser]lampard789[/eluser]
[quote author="charlie spider" date="1215296175"]where is the rest of the controller ?
the error says it is on line 92
i want to see line 92
you only posted like 60 lines of code.
Do you have an array anywhere with 'search' as an index ???
ie:
Code:
$some_array['search']
because if you do, and 'search' hasn't been declared anywhere, or has no value, then you would get the "Undefined index" error.[/quote]
I removed all the comments and unnecessary stuffs. The line 92 is the one with echo $_POST['search']. Sorry for the confusion.
Derek has pointed out my (bad) mistake below :red:
[quote author="Derek Jones" date="1215282356"]Do you have any .htaccess in play? If you are doing a rewrite that redirects or a regular redirect, you will lose POST data between page requests.[/quote]
Ah yeah!! you're right. I should've realized it earlier. Need to be more careful next time.
Thank you everyone, it works now! :wow: