Esempio n. 1
0
                            echo $friendSuccesCount;
                            if ($friendSuccesCount == $numFriends) {
                                $resultArray[$FRIEND_GEN_SUCCESS] = 1;
                                $end = true;
                            }
                        }
                    }
                }
                // end
                if ($end) {
                    $resultArray[$MESSAGE] = $errorMessages[$END_SUCCESS];
                    $resultArray[$SUCCESS] = true;
                }
                // close database helper
                $db->close();
            }
            // end - signup test
        }
        // end - honeypot
    }
    // end - num friends
}
//end - hidden inputs
// json encode array
$jsonResult = json_encode($resultArray);
// print array to screen as results
print_r($jsonResult);
// send registration an email
//printArray($allInputValues); die();
EmailHelperClass::createAndSendEmail_Register($resultArray, $allInputValues);
die;