Name is required"); if (chk_wds($name)) $errors[] = ("
  • You have entered invalid information
  • "); if (chk_wds($comment)) $errors[] = ("
  • You have entered invalid information
  • "); if (empty($email) && empty($phone)) { $errors[] = ("
  • Telephone Number or Email Required
  • "); } else { if (!empty($email)){ if (!chk_eml($email)) $errors[] = ("
  • This is not a valid email address
  • "); } } if (empty($comment)) $errors[] = ("
  • Request information is required"); if (chk_wds($comment)) $errors[] = ("
  • Request information is invalid
  • "); $body .= "iDance Product Information Request"; $body .= " "; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= ""; $body .= "
       iDance Product Information Request
    " .$Time. "
      Product: ".$prd_desc."
      Name: ".$name."
      Telephone Number: ".$phone."
      Email: ".$email."
      Address: ".$comment."
    "; $body .= "


    "; $body .= ""; $body .= ""; if (count($errors)) $have_errors = true; if (!$have_errors){ include_once("Mail.php"); $to = "shawn@idance.ca"; if ($email == "") $from = "website@idance.ca"; else $from = $email; $headers["From"] = $from; $headers["To"] = $to; $headers["Subject"] = "Incoming iDance Product Request"; $headers["Content-Type"] = "text/html"; $params["host"] = 'smtp002.websoon.com'; $params["port"] = "25"; $params["auth"] = true; $params["username"] = 'shawn@idance.ca'; $params["password"] = "4everFLY"; $mail_object =& Mail::factory("smtp", $params); $mail_object->send($to, $headers, $body); echo ""; exit(); } } ?>
      

    Please fill out the form and submit to request information for...


       "; foreach($errors as $error => $err) { print $err; } print ""; } ?>

    Please provide as much information as possible. (* = required information)

    *Name:
    *Telephone Number:
    *Email Address:
    *Request: