Page 1 of 1

PHP in Ajax Call Fails

Posted: Wed Jun 01, 2011 1:14 pm
by unemployment
I am using this ajax call

http://mysite.com/assets/ajax/goal_crea ... 7&status=0

but my php seems to be failing. It says I don't have status defined, but my URL says I do, right?

AJAX PHP Code
if (isset($_GET['gid']) !== false && isset($_GET['status']) !== false && isset($user_info['uid']) !== false)
{
	$gid	= (int)$gid;
	$status = (int)$status;    // If I remove this then status updated will echo
	
	echo 'status updated';
}

Re: PHP in Ajax Call Fails

Posted: Wed Jun 01, 2011 4:27 pm
by jacek
Where do you initially defined $status ?