Home > ADLInspect > Support > Give Feedback
Love It?
Hate it?
Need it?
Could do without it?
Tell us! Help us build it exactly the way it should be. We can't do it without you.

0) $Errors=func_get_arg(0); if ($num_args = func_num_args()>1) $Values=func_get_arg(1); ?>
1. What part of the ADLInspect system would you like to ask a question about?


", $Errors["ErrorPackage"], "

"; ?>
2. What type of feedback would you like to give?


", $Errors["ErrorFeedbackType"], "
"; ?>
3. Please provide us with the feedback:


", $Errors["ErrorFeedback"], "
"; ?>
4. We may need to contact you to respond to your feedback - please provide your contact details:

Contact Name:  " ID="Text1"> ", $Errors['ErrorContactName'], ""; ?>
Business Name:  " ID="Text2"> ", $Errors['ErrorBusinessName'], ""; ?>
E-mail Address:  " ID="Text3"> ", $Errors['ErrorEmailAddress'], ""; ?>
Telephone Number: " ID="Text4"> ", $Errors['ErrorTelephone'], ""; ?>


Please let ADL Software know about this problem!"); mysql_select_db($dbname, $chandle) or die ($dbname . " Unfortunatly the connection failed to our database.
The database name could not be found.
Please let ADL Software know about this problem! " . $dbuser); $sql = "INSERT INTO ADLInspect_Feedback (Package,FeedbackType,Feedback,ContactName,ContactBusiness,ContactEmail,ContactPhone) VALUES ('$package', '$feedbackType', '$feedback', '$contactName', '$businessName', '$emailAddress', '$telephoneNumber')"; $result = mysql_db_query($dbname, $sql); //Send off the e-mails //Get the to addresses from file // // read the list of emails from the file. // $email_list = file("elist.txt"); // // count how many emails there are. // $total_emails = count($email_list); // // go through the list and trim off the newline character. // for ($counter=0; $counter<$total_emails; $counter++) // { // $email_list[$counter] = trim($email_list[$counter]); // } // // implode the list into a single variable, put commas in, apply as $to value. // $to = implode(",",$email_list); $to = "support@adlsoftware.com"; $subject = "ADL Inspect Feedback (from website)"; $body = stripslashes("Hello Feedback Team,\r\n\r\nI am providing feedback for '$package' and '$feedbackType'.\r\n\r\n\r\n$feedback\r\n\r\n\r\nFor more information please reply to this e-mail.\r\n\r\nName: $contactName\r\nBusiness Name: $businessName\r\nE-Mail Address: $emailAddress\r\nPhone: $telephoneNumber\r\n\r\nThank-you."); $headers = 'From: ' . $contactName . ' <' . $emailAddress . '>\r\n'; if (mail($to, $subject,$body,$headers)) { echo '

Thank-you for your feedback!

'; } else { echo '

Unfortunatly and error occured while attempting to send your feedback via e-mail.
If possible - please telephone ADL Software to let us know about the problem.

'; } } function validate_form() { if ($_POST['Package'] == "< Please Select >") { $ListErrors["ErrorPackage"]="Please select a section"; } if ($_POST['FeedbackType'] == "< Please Select >") { $ListErrors["ErrorFeedbackType"]="Please select the type of feedback you want to give"; } //$ListErrors["ErrorFeedbackType"]=$_POST['FeedbackType']; if (strlen(trim($_POST['Feedback'])) == 0) { $ListErrors["ErrorFeedback"]="Please provide feedback"; } if (strlen(trim($_POST['ContactName'])) == 0) { $ListErrors["ErrorContactName"]="Please enter a contact name"; } if (strlen(trim($_POST['BusinessName'])) == 0) { $ListErrors["ErrorBusinessName"]="Please enter a business name"; } if (strlen(trim($_POST['EmailAddress'])) == 0) { $ListErrors["ErrorEmailAddress"]="Please enter an e-mail address"; } else if (!is_email_valid(trim($_POST['EmailAddress']))) { $ListErrors["ErrorEmailAddress"]="Please enter a valid e-mail address"; } if (strlen(trim($_POST['TelephoneNumber'])) == 0) { $ListErrors["ErrorTelephone"]="Please enter a telephone number"; } return $ListErrors; } function is_email_valid($email) { return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email); } ?>
ADL Software is proud to support Camp Quality and sponsor the Southpine Touch Football Association.

© Copright A.D. Liddle Pty Ltd T/As ADL Software, 2006. All rights reserved.