Universal Form Validator PHP Support Product Page
Warning: require_once(ScriptLibrary/dmxValidator.php) [function.require-once]:
Reported 14 May 2015 23:15:11
1
has this problem
14 May 2015 23:15:11 Fred Muchmore posted:
I just purchased this extension and after I added the validation code the page is coming up with these errors:Warning: require_once(ScriptLibrary/dmxValidator.php) [function.require-once]:
Fatal error: require_once() [function.require]: Failed opening required 'ScriptLibrary/dmxValidator.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/94/3319194/html/Jennifers-Web_Site/contact.php on line 1
That's kinda ridicules just purchasing these extensions and it is not working?
<?php require_once('ScriptLibrary/dmxValidator.php'); ?>
<?php require_once('ScriptLibrary/incSmartMailer.php'); ?>
<?php
// Universal Form Validator PHP 1.5.5
$dmxval1 = new dmxValidator();
$dmxval1->script_folder = "ScriptLibrary";
$dmxval1->cs_validate_on_change = true;
$dmxval1->cs_validate_on_submit = true;
$dmxval1->reenable_javascript = true;
$dmxval1->use_bot_check = true;
$dmxval1->report_type = 4;
$dmxval1->error_font = "Arial";
$dmxval1->error_font_size = 12;
$dmxval1->error_color = "#ffffff";
$dmxval1->error_bold = true;
$dmxval1->error_italic = false;
$dmxval1->error_image = "";
$dmxval1->error_fixed = "Custom";
$dmxval1->error_padding = 4;
$dmxval1->border_color = "#FF0000";
$dmxval1->border_style = "solid";
$dmxval1->css_error_file = "validatorError1";
$dmxval1->error_bg_color = "#ff0000";
$dmxval1->error_preset = "error_five.txt";
$dmxval1->tooltip_position = "top";
$dmxval1->css_hint_file = "validatorHint1";
$dmxval1->hint_preset = "blue.txt";
$dmxval1->hint_tooltip_position = "top";
$dmxval1->hint_border_color = "#0099ff";
$dmxval1->hint_border_style = "solid";
$dmxval1->hint_bg_color = "#003399";
$dmxval1->hint_text_color = "#ffffff";
$dmxval1->hint_text_font = "Arial";
$dmxval1->hint_text_size = 12;
$dmxval1->hint_text_bold = false;
$dmxval1->hint_text_italic = false;
$dmxval1->hint_box_width = 200;
$dmxval1->hint_image = "";
$dmxval1->hint_fixed = "Custom";
$dmxval1->hint_padding = 4;
$dmxval1->use_custom_focus_class = "fixed";
$dmxval1->focus_border_style = "groove";
$dmxval1->focus_border_size = 2;
$dmxval1->focus_border_color = "#C3D9FF";
$dmxval1->focus_bg_color = "#FFFFFF";
$dmxval1->focus_text_color = "#000000";
$dmxval1->use_custom_valid_class = "fixed";
$dmxval1->valid_border_style = "groove";
$dmxval1->valid_border_size = 2;
$dmxval1->valid_border_color = "#00FF00";
$dmxval1->valid_bg_color = "#FFFFFF";
$dmxval1->valid_text_color = "#000000";
$dmxval1->use_custom_invalid_class = "fixed";
$dmxval1->invalid_border_style = "groove";
$dmxval1->invalid_border_size = 2;
$dmxval1->invalid_border_color = "#FF0000";
$dmxval1->invalid_bg_color = "#FFFFFF";
$dmxval1->invalid_text_color = "#000000";
$dmxval1->add_rule("contact_me", "First_Name", "letterscond", "true,,", "true", "", "First Name", "", "";
$dmxval1->add_rule("contact_me", "Last_Name", "allformats", ",,", "true", "", "Last Name", "", "";
$dmxval1->add_rule("contact_me", "Email", "emailcond", ",,", "true", "", "Email", "", "";
$dmxval1->add_rule("contact_me", "Message", "minlengthcond", "5,,", "true", "", "Please Enter Your Message", "", "";
$dmxval1->add_rule("contact_me", "Phone", "allformats", ",,", "true", "", "Phone Number", "", "";
$dmxval1->add_rule("contact_me", "Message", "maxlengthcond", "500,,", "true", "", "Please Enter Your Message", "", "";
$dmxval1->add_rule("contact_me", "Message", "allformats", ",,", "true", "", "Please Enter Your Message", "", "";
$dmxval1->add_mask("contact_me", "Phone", "phone", "North America";
$dmxval1->validate();
?>
<?php
// Smart Mailer 1.0.10
// Send on submit of form send-form
// Use progress blue_mailprogress.htm
// dimensions 300, 100
$sm1 = new SmartMailer();
$sm1->checkVersion("1.10";
$sm1->smtpSetup("smtpout.secureserver.net", 25, "xxxxxxxxxxxxx", "xxxxxxxxxxxx";
$sm1->component = "Sendmail";
$sm1->tmpFolder = "";
$sm1->embedImages = false;
$sm1->progressBar = "blue_mailprogress.htm";
$sm1->ignore_errors = false;
if (!isset($mm_abort_edit) || !$mm_abort_edit) {
if (count($_POST) > 0) {
@set_time_limit(300);
$sm1->setFrom(((isset($_POST["First_Name"]))?$_POST["First_Name"]:"", ((isset($_POST["Email"]))?$_POST["Email"]:""
$sm1->setTo("Jennifer Muchmore", " ";
$sm1->setCc("", "";
$sm1->setBcc("", "";
$sm1->setSubject("You Got an Email Request";
// using static for body
$sm1->setBody_Static_html("Received From:\n".((isset($_POST["First_Name"]))?$_POST["First_Name"]:""." ".((isset($_POST["Last_Name"]))?$_POST["Last_Name"]:""."\n\nEmail Address: ".((isset($_POST["Email"]))?$_POST["Email"]:""."\n\nPhone Number: ".((isset($_POST["Phone"]))?$_POST["Phone"]:""."\n\nHere is your message request:\n".((isset($_POST["Message"]))?$_POST["Message"]:""."";
// Attachments none
$sm1->sendMail("one";
$GoTo = "thank-you.html";
if (isset($_SERVER['QUERY_STRING'])) {
$GoTo .= (strpos($GoTo, '?')) ? "&" : "?";
$GoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $GoTo));
}
}
$SM_mailAction = getMailAction();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<script language="JavaScript">
<!--
function showMailProgressWindow(progressFile,popWidth,popHeight) { //v1.00
if (document.MM_returnValue!=false) {
var w = 480, h = 340;
if (document.all || document.layers || document.getElementById) {
w = screen.availWidth; h = screen.availHeight;}
var leftPos = (w-popWidth)/2, topPos = (h-popHeight)/2;
document.progressWindow = window.open(progressFile,'ProgressWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + popWidth + ',height='+popHeight);
document.progressWindow.moveTo(leftPos, topPos);document.progressWindow.focus();
window.onunload = function () {document.progressWindow.close();};
} }
//-->
</script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Contact</title>
<link href="stylesheets/reset.css" rel="stylesheet" type="text/css" />
<link href="stylesheets/photo.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/browser-compatibility.js"></script>
<link href="Styles/form_clear.css" rel="stylesheet" type="text/css" />
<link href="Styles/form_fancy.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="Styles/dmxValidator/validatorHint1.css" type="text/css" />
<link rel="stylesheet" href="Styles/dmxValidator/validatorError1.css" type="text/css" />
<script type="text/javascript" src="ScriptLibrary/jsvat.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.inputHintBox.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.maskedinput-1.2.2.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.validate.min.js"></script>
<script type="text/javascript" src="ScriptLibrary/dmx.jquery.validate.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.tooltip.min.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.hoverIntent.min.js"></script>
<?php
// dmxValidatorJSStart
$dmxval1->generate_javascript_and_css();
// dmxValidatorJSEnd
?>
</head>
<body><div class="main_wrapper cf">
<div class="header cf">
<div class="logo_and_nav cf">
<div class="logo"> <a href="index.html"><img name="logo" src="images/new-logo.png" width="275" height="124" id="logo" alt="" /></a>
</div>
<div class="nav_holder">
<ul class="hmenubar">
<li><a href="index.html" class="clicked">Home</a>
</li>
<li><a href="about.html">About</a>
</li>
<li><a href="portfolio.html">Portfolio</a>
</li>
<li><a href="contact.php">Contact</a>
</li>
</ul>
<select>
<option href="#" selected="selected">Home</option>
</select>
<script type="text/javascript" src="scripts/menu_selection.js"></script>
</div>
</div>
</div>
<div class="content cf">
<div class="main_contact_area cf">
<div class="contact_form_holder">
<h2 class="about_title">Contact me</h2>
<div class="form_holder">
<form action="" method="post" name="send-form" class="clear" id="contact_me" onsubmit="showMailProgressWindow('blue_mailprogress.htm?<?php echo $sm1->getProgressFile(); ?>',300,100)">
<fieldset>
<legend>Please Enter Your Information</legend>
<ol>
<li>
<label for="First_Name">First Name</label>
<input type="text" id="First_Name" name="First_Name" value="<?php echo dmxSetValue("", "First_Name" ?>" />
<?php $dmxval1->generate_error("contact_me","First_Name","requiredcond","true,,";$dmxval1->generate_error("contact_me","First_Name","letterscond","true,,";?>
</li>
<li>
<label for="Last_Name">Last Name</label>
<input type="text" id="Last_Name" name="Last_Name" value="<?php echo dmxSetValue("", "Last_Name" ?>" />
<?php $dmxval1->generate_error("contact_me","Last_Name","requiredcond",",,";$dmxval1->generate_error("contact_me","Last_Name","allformats",",,";?>
</li>
<li>
<label for="Email">Email</label>
<input type="text" id="Email" name="Email" value="<?php echo dmxSetValue("", "Email" ?>" />
<?php $dmxval1->generate_error("contact_me","Email","requiredcond",",,";$dmxval1->generate_error("contact_me","Email","emailcond",",,";?>
</li>
<li>
<label for="Phone">Phone Number</label>
<input type="text" id="Phone" name="Phone" value="<?php echo dmxSetValue("", "Phone" ?>" />
<?php $dmxval1->generate_error("contact_me","Phone","requiredcond",",,";$dmxval1->generate_error("contact_me","Phone","allformats",",,";?>
</li>
<li>
<label for="Message">Please Enter Your Message</label>
<textarea name="Message" id="Message"><?php echo dmxSetValue("", "Message" ?></textarea>
<?php $dmxval1->generate_error("contact_me","Message","requiredcond",",,";$dmxval1->generate_error("contact_me","Message","allformats",",,";?>
<?php $dmxval1->generate_error("contact_me","Message","requiredcond","500,,";$dmxval1->generate_error("contact_me","Message","maxlengthcond","500,,";?>
<?php $dmxval1->generate_error("contact_me","Message","requiredcond","5,,";$dmxval1->generate_error("contact_me","Message","minlengthcond","5,,";?>
</li>
</ol>
</fieldset>
<p style="text-align:right;">
<input type="reset" value="CANCEL" />
<input type="submit" value="OK" />
</p>
<?php $dmxval1->show_bot_check_error(); ?>
</form>
</div>
</div>
<div class="address_holder">
<h2 class="about_title"> </h2>
<p abp="234"><strong abp="235"><span abp="236">By Appointment Only</span></strong><br abp="237" />
</p>
<p abp="241"> </p>
<p abp="241">Telephone: +1 (706) 761-0997<br>
E-mail: <a href="mailto: "> </a></p>
</div>
</div>
</div>
<div class="footer cf">
<div class="footer_area cf">
<div class="rights">
<p class="rights_text">© Jenmuchmorephotography 2015. All Rights Reserved.</p>
</div>
<div class="social_area">
<div class="follow_us_container">
<p class="followUs">Follow Us</p>
</div>
<div class="social_container">
<ul class="socialList">
<li class="social1"><a href="#" class="anchor"></a>
</li>
<li class="social2"><a href="#" class="anchor1"></a>
</li>
<li class="social3"><a href="#" class="anchor2"></a>
</li>
<li class="social4"><a href="#" class="anchor3"></a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</body>
</html>