setHide(TRUE); $countryArray = $c->GetCountries(); $js = "countryObj = {"; for($i=0;$iPlease Select"); $countryselect = myDropDownSql($cli,"frmPers[country_id]","select country_id, name from ".DBNAME_RT.".country where visible_on_site = 1 order by name", ($frmPers['country_id'] ? $frmPers['country_id'] : $user_country)," onChange=\"setCountryCode2(this);\"","Please Select"); $agent = $_SERVER['HTTP_USER_AGENT']; $browser = (strpos($agent,'IE')>0 ? '' : ''); include_once(includeable_file("$tool_path/user_metric.inc")); $objUserMetric = new userMetric(); $jobDescriptions = $objUserMetric->buildSelect('Job Description', "job",''); $companySize = $objUserMetric->buildSelect('Company Size', "size",''); $industryDropDown = $objUserMetric->buildSelect('industry', "industry",'',TRUE); if (isset($_POST['name'])) { $name = $_POST['name']; $surname = $_POST['surname']; $job = $_POST['job']; $company = $_POST['company']; $size = $_POST['size']; $industry = $_POST['industry']; $country_name = $_POST['country_name']; $email = $_POST['email']; $contact = $_POST['contact']; $type = $_POST['type']; $today = date("F j, Y, g:i a"); $ipaddr = $HTTP_SERVER_VARS["REMOTE_ADDR"]; $position[1]="I would like to receive additional mobile messaging guides and marketing communications ."; $position[2]="Please contact me as soon as possible, I evaluating my messaging solution and would like to see what Clickatell has to offer."; $position[3]="I am an existing Clickatell customer ."; if(!empty($qualifier)) { $showQual=$position[$qualifier]; } else { $qualifier="0"; $showQaul="0"; } if ($type == 1) { //$to = "neil.williams@clickatell.com"; // $to = "storm.buckingham@clickatell.com"; $horiz= $frmPers["industry_horizontal"]; $sub = "Contact Form - 2010 Valentines Mobile Marketing Handbook - $email"; $mess ="$name completed the form at $today \nSurname: $surname \nJob Description: $job \nCompany: $company \nCompany size: $size \nIndustry: $industry - $horiz \nCountry: $country_name \nCurrent position: $showQual \nTelephone Number: {$frmPers['cc']} {$frmPers['cellrest']} \nEmail Address: $email"; //Add SALESFORCE code here include_once(includeable_file("$tool_path/salesforce/salesforce_controller.php")); include_once(includeable_file("$tool_path/salesforce/salesforce_leadscore.inc")); $sfInput = new SalesforceController(); $sfEvent=SF_EVENT_WHITEPAPER; $userArray['White_Paper_Name__c'] = "a0580000006hkI4AAI"; $userArray['FirstName']=$name; $userArray['LastName']=$surname; $userArray['Email']=$email; $userArray['LeadSource']='2010 Valentines Mobile Marketing Handbook'; $userArray['CountryID']=$frmPers['country_id']; $userArray['Qualification']=$qualifier; $userArray['Company']=$company; if($company!='Personal Use') { $userArray['Company_Size__c']=$size; $userArray['Industry']=$industry; $userArray['Personal_Use__c'] =FALSE; if(!empty($frmPers['industry_horizontal'])) { $userArray['Industry_Horizontal']=$frmPers['industry_horizontal']; $userArray['Vertical_Sector__c']=$frmPers['industry_horizontal']; } } else { $userArray['Personal_Use__c'] =TRUE; } $userArray['Job_Description__c']=$job; $userArray['Phone']=$frmPers['cc'].'-'.$frmPers['cellrest']; if(isset($country_name) && $country_name!='') { $userArray['Country']=$country_name; } $userArray['Region__c'] = $c->getRegionByCountry($frmPers['country_id']); $userArray['Site__c']=$site; $userArray['Date_downloaded__c']=date('Y-m-d H:i:s'); $leadscore = new SalesforceLeadscore(); $userArray['White Paper Download']='2011 Valentines Mobile Marketing Handbook'; $score=$leadscore->calcScore($userArray); $userArray['Lead_Score__c'] =$score; $sfInput->createEvent($sfEvent,$userArray); $sfInput->execute(); //END SALESFORCE } else { $to = "neil@clickatell.com"; $sub = "2011 Valentines Mobile Marketing Handbook - Error with variables"; } //mailContactForm($to, $sub, $mess, $email); header("Location: http://www.clickatell.com/downloads/2011_Valentines_Mobile_Marketing_Handbook.pdf"); } ?> 2011 Valentine's Mobile Marketing Handbook | Clickatell