|
Alpha
Kappa Alpha Sorority, Inc.
Sigma Gamma Omega Chapter
P.O. Box 688
Harrisonburg, Virginia 22801
info@aka-sgo.com
$first_name_color="#669966";
$last_name_color="#669966";
$Affiliation_color="#669966";
$email_color = "#669966";
$countrycolor="#000000";
$useridcolor="#000000";
$passwdcolor="#000000";
$passwd1color= "#000000";
$cvv_color = "#000000";
if ($formaction) { // if there is an action then validate the form fields.
if ($first_name == "") {
$first_name_color = "#ff0000";
$error_flag =1;
}
if ($last_name == "") {
$last_name_color ="#ff0000";
$error_flag = 1;
}
if ($email == "") {
$email_color = "#ff0000";
$error_flag =1;
}
}
if (!$formaction || $error_flag) {
?>
Oops! There is a problem with the fields marked in red. Please review and make changes.
";
}?>
}else{?>
function strtotitle($strtochange){
$strtochange = strtolower($strtochange);
$string_array = explode(" ",$strtochange);
$fixed_str = "";
foreach ($string_array as $part){
$fixed_str .= strtoupper(substr("$part",0,1));
$fixed_str .= substr("$part",1,strlen($part));
$fixed_str .= " ";
}
return rtrim($fixed_str);
}
function show_table($Data)
{
global $varstring1;
reset($Data);
//echo '';
while (list($Name, $Value) = each($Data))
{
$varstring1 = $varstring1 ."$Name: ...... ";
if (is_array($Value))
{
show_table($Value);
} else {
$varstring1 = $varstring1 ."$Value\n";
}
}
}
function show_list($Data)
{
global $varstring;
reset($Data);
while (list($Name, $Value) = each($Data))
{
if (is_array($Value))
{
show_table($Value);
} else {
echo $Name . " " .$Value . " ";
}
}
}
show_table($HTTP_POST_VARS);
//show_list($HTTP_POST_VARS);
//echo $varstring1;
$fromAddress = "admin@ako-sgo.com";
$admin_email = "steve@moonsite.com";
//$contactmsg = "\"".$first_name."\",\"".$last_name."\",\"".$address1."\",\"".$address2."\",\"".$city."\",\"".$state."\",\"".$zipcode."\",\"".$email."\",\"".$opt."\"\n";
$first_name = strtotitle($first_name);
$last_name = strtotitle($last_name);
$email = strtotitle($emails);
$comments = strtotitle($comments);
$Affiliation = strtotitle($Affiliation);
$blank_space = " ";
$contactmsg = "\"".$first_name."\",\"".$last_name."\",\"".$email."\",\"".$Affiliation."\",\"".$Comments."\"\n";
//$printmsg = "\"".$full_name."\";\"".$full_address."\";\"".$full_state."\";\"".$full_catalog."\";\"".$full_total."\"\n";
$subject = "AKA Contact Form " . $first_name . $last_name;
$admin_email = "stacey@moonsite.com";
mail($admin_email." <".$admin_email.">", $subject, $contactmsg, "From:$admin_email");
?>
Thank You for contacting us! You may return where you left off ">Here
}
?>
| |