$pvalue){ if( $pvalue != "" && $pkey != "NAME" && $pkey != "EMAIL" && $pkey != "COMPANY" && $pkey != "ADDRESS_LINE1" && $pkey != "ADDRESS_LINE2" && $pkey != "CITY" && $pkey != "MOBILE" && $pkey != "ZIP_CODE" && $pkey != "How" && $pkey != "MORE_SPECIFIC" && $pkey != "COMMENTS" && $pkey != "submit"): $new_post_array[$pkey] = $pvalue; endif; } $score = ""; if(!$new_post_array): echo "You did not answer any of the questions in the test.
"; echo "Please go back and answer atleast one question."; die; endif; foreach($new_post_array as $npa_key=>$npa_value){ if(substr($npa_value, 0, 1) != "-"): $score = $score + $npa_value; else: $new_npa_value = str_replace("-", "", $npa_value); $score = $score - $new_npa_value; endif; } $tipscore = ""; if($_POST['lose'] && $_POST['lose'] != ""): $tipscore .= "1"; else: $tipscore .= "0"; endif; if($_POST['quit'] && $_POST['quit'] != ""): $tipscore .= "1"; else: $tipscore .= "0"; endif; if($_POST['zenlp'] && $_POST['zenlp'] != ""): $tipscore .= "1"; else: $tipscore .= "0"; endif; if($_POST['will'] && $_POST['will'] != ""): $tipscore .= "1"; else: $tipscore .= "0"; endif; $date_array = array( "01" => "January", "02" => "February", "03" => "March", "04" => "April", "05" => "May", "06" => "June", "07" => "July", "08" => "August", "09" => "September", "10" => "October", "11" => "November", "12" => "December" ); $year = date("Y"); $month = date("m"); $day = date("d"); $current_date = $day."-".$date_array[$month]."-".$year; $insertion_array = array(); $insertion_array['Score'] = $score; ($_POST['NAME'] != "") ? $insertion_array['Full Name'] = $_POST['NAME']: "" ; ($_POST['EMAIL'] != "") ? $insertion_array['Email-Id'] = $_POST['EMAIL']: "" ; ($_POST['COMPANY'] != "") ? $insertion_array['Company'] = $_POST['COMPANY']: "" ; ($_POST['ADDRESS_LINE1'] != "") ? $insertion_array['Address'] = $_POST['ADDRESS_LINE1']: "" ; ($_POST['ADDRESS_LINE2'] != "") ? $insertion_array['Address'] .= " " . $_POST['ADDRESS_LINE2']: "" ; ($_POST['CITY'] != "") ? $insertion_array['City'] = $_POST['CITY']: "" ; ($_POST['MOBILE'] != "") ? $insertion_array['Mobile No.'] = $_POST['MOBILE']: "" ; ($_POST['ZIP_CODE'] != "") ? $insertion_array['Zip Code'] = $_POST['ZIP_CODE']: "" ; ($_POST['How'] != "") ? $insertion_array['How did you get our site'] = $_POST['How']: "" ; ($_POST['MORE_SPECIFIC'] != "") ? $insertion_array['more'] = $_POST['MORE_SPECIFIC']: "" ; ($_POST['COMMENTS'] != "") ? $insertion_array['comments'] = $_POST['COMMENTS']: "" ; $insertion_array['Test Date'] = $current_date; $insertion_array['Please Email me tips for'] = $tipscore; $link = mysql_connect($host, $mysqluser, $mysqlpass); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db($database); foreach($insertion_array as $insert_key=>$insert_value){ $fieldarray[] = $insert_key; $valuearray[] = $insert_value; } $fields = implode($fieldarray, "`,`"); $values = implode($valuearray, "','"); $query = "INSERT INTO ".$table." (`".$fields."`) VALUES('".$values."')"; if(mysql_query($query) or die(mysql_error())): $Name = "tips4ceos.com"; $email = "ceo@tips4ceos.com"; $recipient = $insertion_array['Email-Id']; $mail_body = "Thank you for joining our addressbook. Your score is " . $insertion_array['Score'] . ". Please visit http://www.tips4ceos.com/pencil/story.htm for details of our book ZeNLP-learning through stories."; $subject = "You have been added to our Addressbook"; $header = "From: ". $Name . " <" . $email . ">\r\n"; if(mail($recipient, $subject, $mail_body, $header)): ?>

Visitors Registration Desk


Register here for a free 30 day trial of tips4ceos.com

We request YOU to fill the form and click submit so that you ARE added to our addressbook. Remember you are CLICKING submit once only. You won't have to do THE same thing again. SUBMIT your form to be added to our addressbook. Remember to click only once on the submit BUTTON. This form can NOW accept all internet browsers from 1995 till today.

Q 1. What is your age?
Q 39. Do you have a cellular phone?

Name:


Email:


Company:


Mailing Address:



City:
Mobile Number:
Zip Code:


Please start my free trial to tips4ceos.com
immediately
in one day
in one week
in four weeks

How Did You Get to Our Site?


Enter your birthday here in dd/mm/yyyy format:





By clicking on the "Submit" button above, you are agreeing to our terms and conditions.