Пример #1
0
/**
 * Called in the loop, so must use global variable;
 *
 * @global array $fieldDefinition
 * @param type $line
 * @param type $index
 */
function processContacts($line, $index)
{
    global $fieldDefinition;
    processContact(parseCsv($line, $index, $fieldDefinition));
}
Пример #2
0
<?php

include 'includes/functions.php';
$firstname = $_REQUEST['first-name'];
$lastname = $_REQUEST['last-name'];
$phone = $_REQUEST['phone'];
$email = $_REQUEST['email'];
$confirmEmail = $_REQUEST['confirmEmail'];
$companyName = $_REQUEST['company'];
$requestType = $_REQUEST['requestType'];
$request = $_REQUEST['request'];
if ($_REQUEST['send']) {
    $processMessage = processContact();
    if ($processMessage == 'Success') {
        $firstname = '';
        $lastname = '';
        $phone = '';
        $email = '';
        $confirmEmail = '';
        $companyName = '';
        $requestType = '';
        $request = '';
    }
}
?>
<!doctype html>
<html>
<head>
	<meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Alchemy Global Networks | Home</title>