// passed data
     if (!empty($_POST['jid'])) {
         $jid = $_POST['jid'];
     } else {
         echo "Missing required data for \$_POST['jid']";
         $proceed = FALSE;
     }
     if (!empty($_POST['jxml'])) {
         $xml = str_replace('&lt;', '<', str_replace('&gt;', '>', $_POST['jxml']));
     } else {
         echo "Missing required data for \$_POST['jxml']";
         $proceed = FALSE;
     }
     // post job
     if ($proceed) {
         $response = $OBJ_linkedin->editJob($jid, $xml);
         if ($response['success'] === TRUE) {
             // job posted
             header('Location: ' . $_SERVER['PHP_SELF']);
         } else {
             // an error occured
             echo "Error posting job:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response, TRUE) . "</pre><br /><br />LINKEDIN OBJ:<br /><br /><pre>" . print_r($OBJ_linkedin, TRUE) . "</pre>";
         }
     }
     break;
 case 'initiate':
     /**
      * Handle user initiated LinkedIn connection, create the LinkedIn object.
      */
     // check for the correct http protocol (i.e. is this script being served via http or https)
     if ($_SERVER['HTTPS'] == 'on') {