$CampaignResult = $ConstantContact->getCampaignByID($_GET["campaignID"]); } else { // Stores all the information from the get back to the form // fields so you can modify your data $CampaignResult = $ConstantContact->getCampaignByID($_GET["campaignID"]); $UpdateError = TRUE; } } else { // Adds your new campaign to your Constant Contact Account $CampaignResult = $ConstantContact->addCampaign($myCampaign, $fromAddress); // $CampaignResult will now hold the referenced campaign object $lastCampaigns = $ConstantContact->getCampaigns(); if (isset($CampaignResult->status)) { foreach ($lastCampaigns['campaigns'] as $recent) { if ($recent->name == $CampaignResult->name) { $CampaignResult == $ConstantContact->getCampaignDetails($recent); } } } } // Catch all errors } catch (Exception $e) { echo $e . " needs to be corrected before submission"; } } ?> <html> <head> <link href="styles/style.css" type="text/css" rel="stylesheet" /> </head>