Parental
Spy Support We
stand behind our software 100% - We provide free pre-sales and
post-purchase support for any software on our site. For all
technical support questions on already purchased software, please
have your order ID ready.
// CSS classes & styles
$classError = "error"; // class for error messages below input fields
$classTxt = "text"; // class for field caption cell
$classField = "field"; // class for input/textarea field cell
$classInputbutton = "inputButton"; // class for submit button
$classInputline = "inputLine"; // class for input lines
$classInputfield = "inputField"; // class for textareas
$styleInputline = "width:255px;"; // add. styles for input lines
$styleInputfield = "width:255px; height:100px;"; // add. styles for textareas
$styleInputbutton = "width:100px;"; // add. styles for submit button
$styleInputradio = "vertical-align:middle;"; // add. styles for radio input fields
$styleInputselect = "width:255px;";
$targetAddress = "inquire@parentalsoftware.org";
$emailSubject = "Form - ParentalSpy.com";
$txtSend = "Send";
$txtMandatory = "mandatory";
$msgDate = "Date";
$dateFormat = "d. M Y, H:i";
$msgIndent = 11;
$txtThankyou = " Thank you for visiting ParentalSpy.com!
Your information has been sent and you'll be contacted within 48 hours. Be sure to check your spam box as some email providers may mistakenly consider our emails as spam. ";
$fields[] = array("Name", "name", "line", "", "*", "*Please enter a name");
$fields[] = array("Email", "email", "line", "email", "*", "*Please enter a valid email address");
$fields[] = array("Order ID#", "orderid", "line", "orderid", "", "");
$fields[] = array("Department", "income", "select", "{-- please choose --|}{Sales |Sales}{Support |Support}{Other |Other}", "*", "*Please select a department");
$fields[] = array("Comment", "request", "field", "", "*", "*Please enter your comment");
$version = "1.3";
function spaces($num, $fill=" "){
$foo="";
for ($i=0; $i<$num; $i++) $foo.=$fill;
return $foo;
}
function isValidEmail($addr){
if(eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$", $addr))
return true;
else
return false;
}
// start form evaluation
unset($error);
if ($_REQUEST['do']=="send"){
$error = false;
$fromAddress = "";
$message = "";
foreach ($fields as $field){
if ($field[4] == "*"){
if ($field[3] == "email"){
if (!isValidEmail($_REQUEST[$field[1]])) $error[$field[1]] = $field[5];
}else{
if ($_REQUEST[$field[1]] == "") $error[$field[1]] = $field[5];
}
}
}
if ($error === false){
$message = $emailSubject." \n";
for ($i = 0; $i < strlen($emailSubject); $i++) $message .= "*";
$message .= " \n\n$msgDate:".spaces($msgIndent-strlen($msgDate)).date($dateFormat);
foreach ($fields as $field){
$message .= "\n".$field[0].":".spaces($msgIndent-strlen($field[0]));
if ($field[3] == "email"){
$message .= "mailto:".$_REQUEST[$field[1]];
$fromAddress = "From: ".$_REQUEST[$field[1]];
}else $message .= $_REQUEST[$field[1]];
$message .= " ";
}
mail($targetAddress, $emailSubject, $message, $fromAddress);
echo $txtThankyou;
}
}
if ($error!==false){
// draw form
echo "\n\n \n\n";
echo "\n";
echo "\n \n\n";
}
?>
Sales Line Only (Staff
cannot answer support questions)
1.866.SPY.SOFT (1-866-779-7638)
|