Jump to content

PHP in Ajax Call Fails


unemployment

Recommended Posts

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';
    }

Link to comment
https://forums.phpfreaks.com/topic/238095-php-in-ajax-call-fails/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.