[insert_php] include("http://webmarketingnow.com/coaching/admin/includes/config.php"); [/insert_php]
[insert_php] if(sizeof($_POST['submit'])) { $b1=$_POST['b1']; $o1=$_POST['o1']; $l1=$_POST['l1']; $i1=$_POST['i1']; $c1=$_POST['c1']; $ps1=$_POST['ps1']; $b2=$_POST['b2']; $o2=$_POST['o2']; $l2=$_POST['l2']; $i2=$_POST['i2']; $c2=$_POST['c2']; $ps2=$_POST['ps2']; $b3=$_POST['b3']; $o3=$_POST['o3']; $l3=$_POST['l3']; $i3=$_POST['i3']; $c3=$_POST['c3']; $ps3=$_POST['ps3']; $b4=$_POST['b4']; $o4=$_POST['o4']; $l4=$_POST['l4']; $i4=$_POST['i4']; $c4=$_POST['c4']; $ps4=$_POST['ps4']; $b5=$_POST['b5']; $o5=$_POST['o5']; $l5=$_POST['l5']; $i5=$_POST['i5']; $c5=$_POST['c5']; $ps5=$_POST['ps5']; $b6=$_POST['b6']; $o6=$_POST['o6']; $l6=$_POST['l6']; $i6=$_POST['i6']; $c6=$_POST['c6']; $ps6=$_POST['ps6']; $b7=$_POST['b7']; $o7=$_POST['o7']; $l7=$_POST['l7']; $i7=$_POST['i7']; $c7=$_POST['c7']; $ps7=$_POST['ps7']; $b8=$_POST['b8']; $o8=$_POST['o8']; $l8=$_POST['l8']; $i8=$_POST['i8']; $c8=$_POST['c8']; $ps8=$_POST['ps8']; $fname=$_POST['fname']; $lname=$_POST['lname']; $email=$_POST['email']; $ip=$_SERVER['REMOTE_ADDR']; $date= strftime("%b %d, %Y %r",time()); $Engineer= $b1 + $o2 + $l3 + $i4 +$c5 + $ps6 + $b7 + $o8; $Planner= $o1 + $l2 + $i3 +$c4 + $ps5 + $b6 + $o7 + $l8; $Manager= $l1 + $i2 +$c3 + $ps4 + $b5 + $o6 + $l7 + $i8; $Developer= $i1 +$c2 + $ps3 + $b4 + $o5 + $l6 + $i7 + $c8; $Inventor= $c1 + $ps2 + $b3 + $o4 + $l5 + $i6 + $c7 + $ps8; $Investigator= $ps1 + $b2 + $o3 + $l4 + $i5 + $c6 + $ps7 + $b8; $sql = mysql_query("insert into coaching(fname,lname,email,sdate,ip,developer,planner,inventor,engineer,manager, investigator) values('$fname','$lname','$email',now(),'$ip',$Developer,$Planner,$Inventor,$Engineer,$Manager,$Investigator)") or die (mysql_error()); /* $cid = mysql_insert_id(); $res1 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,1,$b1,$o1,$l1,$i1,$c1,$ps1)"); $res2 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,2,$b2,$o2,$l2,$i2,$c2,$ps2)"); $res3 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,3,$b3,$o3,$l3,$i3,$c3,$ps3)"); $res4 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,4,$b4,$o4,$l4,$i4,$c4,$ps4)"); $res5 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,5,$b5,$o5,$l5,$i5,$c5,$ps5)"); $res6 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,6,$b6,$o6,$l6,$i6,$c6,$ps6)"); $res7 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,7,$b7,$o7,$l7,$i7,$c7,$ps7)"); $res8 = mysql_query("insert into answer (cid,qid,a1,a2,a3,a4,a5,a6) values($cid,8,$b8,$o8,$l8,$i8,$c8,$ps8)"); */ //$builder= $b1 + $ps2 + $c3 + $i4 +$l5 +$o6 +$b7 + $ps8; //$organizer= $o1 + $b2 + $ps3 + $c4 +$i5 +$l6 +$o7 + $b8; //$leader= $l1 + $o2 + $b3 + $ps4 +$c5 +$i6 +$l7 + $o8; //$improver= $i1 + $l2 + $o3 + $b4 +$ps5 +$c6 +$i7 + $l8; //$creator= $c1 + $i2 + $l3 + $o4 +$b5 +$ps6 +$c7 + $i8; //$problemsolver=$ps1 + $c2 + $i3 + $l4 +$o5 +$b6 +$ps7 + $c8; $allresult[0]["result"] = $Engineer; $allresult[0]["text"] = "Hands On Approach"; $allresult[1]["result"] = $Planner; $allresult[1]["text"] = "Goal Oriented"; $allresult[2]["result"] = $Manager; $allresult[2]["text"] = "Aims to Win"; $allresult[3]["result"] = $Developer; $allresult[3]["text"] = "Natural Teacher"; $allresult[4]["result"] = $Inventor; $allresult[4]["text"] = "Idea Machine"; $allresult[5]["result"] = $Investigator; $allresult[5]["text"] = "Fact Finder"; sort($allresult); $result = array_reverse($allresult); $sMAIL = ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= "
Following Information has been submitted on webmarketingnow.com for MOTIVATION FACTOR Coaching Test
First Name :".$fname."
Last Name : ".$lname."
Email : ".$email."
IP : ".$ip."
Date : ".$date."
".$result[0]["text"] ." :".$result[0]["result"]."
".$result[1]["text"] ." : ".$result[1]["result"]."
".$result[2]["text"] ." :".$result[2]["result"]."
".$result[3]["text"] ." : ".$result[3]["result"]."
".$result[4]["text"] ." :".$result[4]["result"]."
".$result[5]["text"] ." : ".$result[5]["result"]."
"; $subject = "Coaching Test Result: webmarketingnow.com"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$fname .' '.$lname . '<'.$email.'>'. "\r\n"; $headers .= 'Bcc: jwest@webmarketingnow.com'. "\r\n"; $to = "ann@webmarketingnow.com"; //$to = "jwest@webmarketingnow.com"; mail($to, $subject, $sMAIL, $headers); $sMAIL = ""; $sMAIL .= "\n"; $sMAIL .= "\n"; if($result[0]["text"]=="Hands On Approach") { $sMAIL .= "\n"; } if($result[0]["text"]=="Fact Finder") { $sMAIL .= "\n"; } if($result[0]["text"]=="Idea Machine") { $sMAIL .= "\n"; } if($result[0]["text"]=="Natural Teacher") { $sMAIL .= "\n"; } if($result[0]["text"]=="Aims to Win") { $sMAIL .= "\n"; } if($result[0]["text"]=="Goal Oriented") { $sMAIL .= "\n"; } $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "\n"; $sMAIL .= "
Dear ".$fname.",

You scored highest as one who takes a Hands On Approach. This means you would rather get things accomplished than take the time to read or understand the directions. This means you may make a lot of mistakes. Mistakes aside, you still feel you are ahead of everyone else, because you got hands-on experience and accomplished something while others took time to understand the process.
You scored highest as a Fact Finder. This means you like to have all of the answers. A perfectionist at heart, you spend a lot of time researching and gathering data to understand your subject in its entirety. This mind-set has the possibility to be a great asset to you, as you have the ability to understand and solve different problems. Just be careful that your researching habits do not lead to procrastination.
You scored highest as an Idea Machine. This means you thrive on and are inspired by your ideas. You are a free spirit that revels in being unique, which may help you to stand apart from the crowd. Because you are an idea generator, you may become restless and bored with projects once you start them, and bite your nails with the anticipation of beginning a new project. This may cause you to start many projects, but finish only a few.
You scored highest as a Natural Teacher. This means you are energized by helping others better themselves and making the world a better place. You communicate easily with others and emanate warmth that draws people to you. In your quest to better the world, you may forfeit valuable time and resources needed to better your business. Learn to say 'No' appropriately and channel your passion into your business.
You scored highest as one who Aims to Win. This means you are a self-starter and are motivated by your inner vision. You enjoy rallying the troops around the same vision. Competitive in nature, you enjoy a good challenge and the opportunity to win. This allows you to pursue your goals and objectives passionately. Unfortunately, your competitiveness can also set up others to lose, even those who are on your team.
You scored highest as one who is Goal Oriented. This means that while you may or may not be organized, you always need a clear plan of action and a specific objective to accomplish. With those goals, you are reliable and productive. Without them, you may find your project on hold as you worry about what things might go wrong.

Here is your Coaching test Information:
".$result[0]["text"] .":".$result[0]["result"]."
".$result[1]["text"] .": ".$result[1]["result"]."
".$result[2]["text"] .": ".$result[2]["result"]."
".$result[3]["text"] .": ".$result[3]["result"]."
".$result[4]["text"] .":".$result[4]["result"]."
".$result[5]["text"] .": ".$result[5]["result"]."

Thank You
Motivation Factor Index Explained
"; $sub = "Coaching Test Result: webmarketingnow.com"; $head = 'MIME-Version: 1.0' . "\r\n"; $head .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $head .= 'From: WebMarketingNow'. "\r\n"; $to = $email; mail($to, $sub, $sMAIL, $head); $sMAIL = ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; $sMAIL .= ""; echo $sMAIL; } [/insert_php]
".$result[0]["text"]." ".$result[0]["result"]."
".$result[1]["text"]." ".$result[1]["result"]."
".$result[2]["text"]." ".$result[2]["result"]."
".$result[3]["text"]." ".$result[3]["result"]."
".$result[4]["text"]." ".$result[4]["result"]."
".$result[5]["text"]." ".$result[5]["result"]."