//include("../inc/sessionstart.php"); //include("../inc/check_admin.php"); include("inc/connect.php"); include("inc/functions.php"); include("inc/mailfunction.php"); include("classes/cls_savedata.php"); /* $Action = $_GET['Action']; if($Action != ''){ if($Action){ } } else { $Action = 0; } */ $cls = new SaveData; $cls->table = "publicdata"; $cls->fieldsdname = array("fname" ,"sname" ,"title" ,"address1" ,"address2" ,"city" ,"country" ,"postcode" ,"homephone" ,"workphone" ,"mobilephone" ,"faxnumber" ,"email1" ,"email2" ,"website" ,"advertising" ,"aeronautical" ,"agriculture" ,"agriculture_horticulture" ,"architecture_building" ,"art" ,"arts_literature" ,"astronomy_cosmology" ,"automotive" ,"banking_finance" ,"biochemistry" ,"biology" ,"business" ,"chemical_engineering" ,"civil_engineering" ,"computers_data" ,"cosmetics_perfumes" ,"crafts" ,"defence" ,"economics" ,"electrical_engineering" ,"electronics" ,"engineering" ,"environment" ,"eu_matters" ,"food_drink" ,"geography_geology" ,"general" ,"humanities" ,"information_technology" ,"insurance" ,"law" ,"leisure" ,"literature" ,"management" ,"manufacturing_processes" ,"marine_engineering" ,"marketing" ,"mathematics" ,"maths_statistics" ,"mechanical_engineering" ,"medicine" ,"medicine_pharmaceuticals" ,"mining" ,"music" ,"nautical_sailing" ,"nuclear_engineering" ,"oil_gasindustry" ,"patents" ,"pharmaceuticals" ,"physics" , "plastics_polymersmaterials" ,"politics" ,"public_relations" , "telecommunications" , "textile_technology" , "textiles_clothing" , "transport" , "otherspecify" , "qualifications" , "specialist_software" , "mother_tongue" , "source_language1" , "source_language2" , "source_language3" , "target_language1" , "target_language2" , "target_language3" , "currency1" , "currency2" , "currency3" , "translation_rate" , "proofreading_rate" , "interpreting_rate" , "minimum_charge" , "transcription" , "voice_over" , "translation_source" , "translation_target" , "proofreading_source" , "proofreading_target" , "Interpreting_hour" , "interpreting_day" , "transcription_hour" , "transcription_target" , "voice_over_hour" , "voice_over_session" , "additional_comments" , "day" , "month" , "year" ); $cls->inputnames = array("realname", "surname", "title" , "address1" , "address2" , "city" , "county" , "postcode" , "homephone" , "workphone" , "mobilephone" , "faxnumber" , "email1" , "email2" , "website" , "advertising" , "aeronautical" , "agriculture" , "agriculture_horticulture" , "architecture_building" , "art" , "arts_literature" , "astronomy_cosmology" , "automotive" , "banking_finance" , "biochemistry" , "biology" , "business" , "chemical_engineering" , "civil_engineering" , "computers_data" , "cosmetics_perfumes" , "crafts" , "defence" , "economics" , "electrical_engineering" , "electronics" , "engineering" , "environment" , "eu_matters" , "food_drink" , "geography_geology" , "general" , "humanities" , "information_technology" , "insurance" , "law" , "leisure" , "literature" , "management" , "manufacturing_processes" , "marine_engineering" , "marketing" , "mathematics" , "maths_statistics" , "mechanical_engineering" , "medicine" , "medicine_pharmaceuticals" , "mining" , "music" , "nautical_sailing" , "nuclear_engineering","oil_gasindustry" , "patents" , "pharmaceuticals" , "physics" , "plastics_polymersmaterials" , "politics" , "public_relations" , "telecommunications" , "textile_technology" , "textiles_clothing" , "transport" , "other_specify","qualifications" , "specialist_software" , "mother_tongue" , "source_language1" , "source_language2" , "source_language3" , "target_language1" , "target_language2" , "target_language3" , "currency1" , "currency2" , "currency3" , "translation_rate" , "proofreading_rate" , "interpreting_rate" , "minimum_charge" , "transcription" , "voice_over" , "translation_source" , "translation_target" , "proofreading_source" , "proofreading_target" , "Interpreting_hour" , "interpreting_day" , "transcription_hour" , "transcription_target" , "voice_over_hour" , "voice_over_session" , "additional_comments" , "day" , "month" , "year" ); $cls->where = " where recordid = ".$_GET['recordid']; $cls->insertcheckquery = "select recordid from publicdata where email1 = '".$_POST['email1']."' limit 0,1"; $cls->updatecheckquery= "select recordid from publicdata where email1 = '".$_POST['email1']."' and recordid <> ".$_GET['recordid']." limit 0,1"; $Action = $cls->Save($Action); if($Action == -1){ $ErrorFound = $_POST['email1']." Already Exist"; $Action = 1; } else if($Action == -2){ $ErrorFound = $_POST['email1']." Already Exist"; $Action = 2; } ?>
} else if ($Action == 1) { // mymail($to, $subject , $message, $from, $fromname, $cc ) // info@atlantic-translations.co.uk mymail("info@atlantic-translations.co.uk", $_POST['subject'], "You Have A New Submition", $_POST['email1'], $_POST['realname'],""); ?>Thanks for submitting your details...! } ?>