PHP in Ajax Call Fails
Posted: Wed Jun 01, 2011 1:14 pm
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
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'; }