"; $mailme=mail($email, $email_subject,$email_content, "From: $email_from\r\nCc: office@xtwork.com\r\n", "-f".$email_from); return $mailme; } switch ($next) { case "start": #header("Location: /nav/webprofiler/survey"); #$hello= new file_template(); #$hello->page_one_A('survey'); #$hello->page_one_B('survey'); #break; #case "Page One": header("Location: /nav/webprofiler/survey"); $new= new file_template(); $new->page_one_app('survey',"/webprofiler/webprofiler.php",''); break; case "Page Two": if (($email=="")||(!(preg_match("/^(.+)@(.+)\.(.+)$/",$email)))){ header("Location: /nav/webprofiler/error"); $html="Valid email address is required. Please go back and check your email
"; $error= new file_template(); $error->content("error",$html); } if ($first==""){ header("Location: /nav/webprofiler/error"); $html="Please include your first name.
"; $error= new file_template(); $error->content("error",$html); } if ($last==""){ header("Location: /nav/webprofiler/error"); $html="Please include your last name.
"; $error= new file_template(); $error->content("error",$html); } if ($phone==""){ header("Location: /nav/webprofiler/error"); $html="Please include your telephone number.
"; $error= new file_template(); $error->content("error",$html); } if ($company==""){ header("Location: /nav/webprofiler/error"); $html="Please include your company name.
"; $error= new file_template(); $error->content("error",$html); } if ((!($email==""))&&(preg_match("/^(.+)@(.+)\.(.+)$/",$email))&&(!($first==""))&&(!($last==""))&&(!($phone==""))&&(!($company==""))) { header("Location: /nav/webprofiler/survey"); $sql="insert into intro values('%','$pin','$email','$first','$last','$phone','$country','$company','')"; $q=mysql_query($sql) or die (mysql_error()); mail_customer($email,$pin); $fetch=mysql_fetch_array(mysql_query("select MAX(id) from intro")); $int_id=$fetch["MAX(id)"]; $new= new file_template(); $new->page_two_app('survey',"/webprofiler/webprofiler.php",$bsql,$int_id); } break; case "Page Three": header("Location: /nav/webprofiler/survey"); $sql="insert into backgoals values ('%','$int_id','$position','$industry','$internet','$competitors','$comp_web_sites','$comp_web_crit','$who_company_proj','$who_decide','$who_contract','$human_res','','','','','','','','','','','')"; $req=mysql_query($sql); $new= new file_template(); $new->page_three_app('survey',"/webprofiler/webprofiler.php",$bsql,$int_id); break; case "Page Four": header("Location: /nav/webprofiler/survey"); $sql="update backgoals set mission_state='$mission_state',basic_goals='$basic_goals,$basic_goals_other',proj_outcome='$proj_outcome',exp_goals='$exp_goals',sched_req='$sched_req,$sched_req_other',proj_budget='$proj_budget',range_budget='$range_budget',existing_work_done='$work_done',brand_market='$brand_market',brand_assets='$brand_assets',order_import='$web_strat,$repurposing,$community__visitors,$quality_execution,$time_to_market,$maintenance,$comp_on_web,$bookmark_the_site,$budget,$message_know_web' where int_id='$int_id'"; $req=mysql_query($sql); $new= new file_template(); $new->page_four_app('survey',"/webprofiler/webprofiler.php",$asql,$int_id); break; case "Page Five": header("Location: /nav/webprofiler/survey"); $sql="insert into audconfun values('%','$int_id','$target_market','$types_visitors','$goals_visitors','$products_services','$goals_prods_servs','','','','','','','','','','','','','','','','','','','','','')"; $req=mysql_query($sql); $new= new file_template(); $new->page_five_app('survey',"/webprofiler/webprofiler.php",$asql,$int_id); break; case "Page Six": header("Location: /nav/webprofiler/survey"); $sql="update audconfun set content_from='$content_from',copy_writing='$copy_writing',new_repurp_both='$new_repurp_both',new_content='$new_content',who_update='$who_update,$who_update_other' where int_id='$int_id'"; $req=mysql_query($sql); $new= new file_template(); $new->page_six_app('survey',"/webprofiler/webprofiler.php",$asql,$int_id); break; case "Page Seven": header("Location: /nav/webprofiler/survey"); $sql="update audconfun set splash_page='$splash_page',graphics='$graphics,$graphics_other',functional='$functional1,$functional2,$functional3,$functional4,$functional5,$functional6,$functional7,$function_other',update_function='$update_function,$update_function_other',secure_password='$secure_password',security_issues='$security_issues',technical_issues='$technical_issues',budget_maintenance='$budget_maintenance',monthly_budget='$monthly_budget,$monthly_budget_other',maintain_site='$maintain_site,$maintain_site_other',host_site='$host_site,$host_site_other',systems_databases='$systems_databases',long_term_plan='$long_term_plan',drive_traffic='$drive_traffic',submit_site='$submit_site',search_engine='$search_engine' where int_id='$int_id'"; $req=mysql_query($sql); $page="7"; $new= new file_template(); $new->page_seven_app('survey',"/webprofiler/webprofiler.php",$esql,$int_id); break; case "Page Eight": header("Location: /nav/webprofiler/survey"); $sql="insert into extoweb values('%','$int_id','$branding_1','$branding_2','$branding_3','$customers_1','$customers_2','$customers_3','$site_like_this_1','$site_like_this_2','$site_like_this_3','','','','','','','','','','','','','','','','','','')"; $req=mysql_query($sql); $new= new file_template(); $new->page_eight_app('survey',"/webprofiler/webprofiler.php",$esql,$int_id); break; case "Page Nine": header("Location: /nav/webprofiler/survey"); $sql="update extoweb set competitors_site_1='$competitors_site_1',competitors_site_2='$competitors_site_2',competitors_site_3='$competitors_site_3',quality_1='$quality_1',quality_2='$quality_2',quality_3='$quality_3',graphics_1='$graphics_1',graphics_2='$graphics_2',graphics_3='$graphics_3',funcionality_1='$funcionality_1',funcionality_2='$funcionality_2',funcionality_3='$funcionality_3',special_features_1='$special_features_1',special_features_2='$special_features_2',special_features_3='$special_features_3',favorite_sites_1='$favorite_sites_1',favorite_sites_2='$favorite_sites_2',favorite_sites_3='$favorite_sites_3' where int_id='$int_id'"; $req=mysql_query($sql); $new= new file_template(); $new->thank_you('survey'); break; default: header("Location: /nav/webprofiler/survey"); $new= new file_template(); $new->page_one_app('survey',"/webprofiler/webprofiler.php",''); break; } ?>