Universal Form Validator PHP Support Product Page

This topic was archived

Want a refund

Asked 27 Jul 2009 16:13:31
1
has this question
27 Jul 2009 16:13:31 Rich Beechy posted:
I would like to know how I can get a refund, I can't get simple validation to work right and it conflicts with a lot of other things on the page, such as my jquery menus and other form elements that I don't want to use this extension with. I didn't pay $200.00 for something I can't use.
The other extensions I purchased in the past I am happy with.

Rich

Replies

Replied 27 Jul 2009 16:44:46
27 Jul 2009 16:44:46 Teodor Kuduschiev replied:
Hello Rich,

Could you please provide a link to your page, or paste here the source code?
What else do you have on your page that's in conflict with the Validator?
Replied 29 Jul 2009 17:13:36
29 Jul 2009 17:13:36 Rich Beechy replied:
Sorry I removed everything from the page and got to busy doing other things I recreated the page now, and this time I have different issues.
Everything was working correctly the first time I opened it up and inserted validation on the page after that everything went backwards and now it won't validate anything on the page and it won't style anything either.
In dreamweaver their is a red exclamation mark beside Universal Form Validator is this something to worry about?

BTW here is the link 76.12.247.125/contact/contact_test.php

Please allow me a refund I just think you released it before you got all the bugs out.
Replied 29 Jul 2009 17:15:50
29 Jul 2009 17:15:50 Rich Beechy replied:
It was my menu that was in conflict with the validator.
Do you really want me to paste source code from the entire page?
Replied 29 Jul 2009 17:27:14
29 Jul 2009 17:27:14 Teodor Kuduschiev replied:
Yes, please paste here the whole page source.
Replied 29 Jul 2009 17:40:53
29 Jul 2009 17:40:53 Rich Beechy replied:
<?php require_once('../ScriptLibrary/dmxValidator.php'); ?>
<?php
// Universal Form Validator PHP 1.0.0
$dmxval1 = new dmxValidator();
$dmxval1->script_folder = "../ScriptLibrary";
$dmxval1->cs_validate_on_change = true;
$dmxval1->cs_validate_on_submit = false;
$dmxval1->report_type = 0;
$dmxval1->error_font =  "Arial";
$dmxval1->error_font_size = 12;
$dmxval1->error_color = "#FF1A00";
$dmxval1->error_bold = false;
$dmxval1->error_italic = false;
$dmxval1->error_image = "";
$dmxval1->use_custom_hint_class = "fixed";
$dmxval1->hint_border_color = "#000000";
$dmxval1->hint_border_size = 1;
$dmxval1->hint_border_style = "solid";
$dmxval1->hint_bg_color = "#FFFF88";
$dmxval1->hint_text_color = "#009900";
$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->use_custom_focus_class = "custom";
$dmxval1->custom_focus_class = "../css/common.css";
$dmxval1->use_custom_valid_class = "fixed";
$dmxval1->valid_border_style = "inset";
$dmxval1->valid_border_size = 2;
$dmxval1->valid_border_color = "#00CC00";
$dmxval1->valid_bg_color = "#FFFFFF";
$dmxval1->valid_text_color = "#000000";
$dmxval1->use_custom_invalid_class = "fixed";
$dmxval1->invalid_border_style = "inset";
$dmxval1->invalid_border_size = 2;
$dmxval1->invalid_border_color = "#FF0000";
$dmxval1->invalid_bg_color = "#FFFFFF";
$dmxval1->invalid_text_color = "#000000";
$dmxval1->add_rule("contact", "email", "emailcond", ",,", "true", "Wrong Format", "", "", "");
$dmxval1->add_rule("contact", "confirm_email", "emailcond", ",,", "true", "Must match", "", "", "");
$dmxval1->add_rule("contact", "phone", "allformats", ",,", "false", "", "", "", "");
$dmxval1->add_hint("contact", "email", "Please enter your contact email here, you will not be added to our email list by doing this!");
$dmxval1->add_hint("contact", "confirm_email", "Please enter the same email address here to validate!");
$dmxval1->add_mask("contact", "phone", "phone", "North America");
$dmxval1->validate();
?>
<?php require_once("../application.php");?>
<?php
// If form is submitted set fields & clean the form values.
if (isset($_POST["email"])) {
foreach($_POST as $field=>$value)  $_POST[$field] = cleanHtml($value);
$name = (isset($_POST["name"])) ? $_POST["name"] : "0";
$email = (isset($_POST["email"])) ? $_POST["email"] : "0";
$comments = (isset($_POST["comments"])) ? $_POST["comments"] : "0";
$subject = (isset($_POST["subject"])) ? $_POST["subject"] : "0";
// If all email criteria is met send email.
 if(strlen($name) > 0 && strlen($email) > 0 && strlen($comments) > 0) {
	$message_sent = "<strong>Thank You for contacting us, we will make every effort to respond as quickly as possible!!</strong><br/>
	<a href=\"http://heartfeltcreations.us/contact/\" class=\"details1\">Send Another Message</a>";
	$email = new CWMail();
	// If message subject is set to website issues send email to developer
	if ($subject == "Website Issues"){
	$email->setTo("rich@skyprowebdesign.com");
	// If the message subject is Card Samples send to Emma Lou
	}elseif ($subject == "Card Sample Questions"){
	$email->setTo("emmalou@heartfeltcreations.us");
	//If the subject is Product Questions send to multible email address
	}elseif ($subject == "Product Questions"){
	$email->setTo("info@heartfeltcreations.us");
	$email->setBCC("emmalou@heartfeltcreations.us");
	// Otherwise just send it to regular email
	}else{
	$email->setTo("info@heartfeltcreations.us");
	}
	$email->setFrom("".$_POST["email"]."");
	$email->setSubject("".$_POST["subject"]."");
	// fill out the html message part
    $email->setHtml("<strong>Heartfelt Creations Website Contact Submission</strong><br /><br /><strong>Name:</strong> ".$_POST["name"]."<br /><strong>Email:</strong> ".$_POST["email"]."<br /><strong>Phone:</strong> ".$_POST["phone"]."<br /><strong>Question/Comments:</strong> ".$_POST["comments"]."");
	$email->setToName("Heartfelt Creations"); //-- optional friendly name for TO field
	$email->setFromName("".$_POST["name"].""); //-- optional friendly name for FROM field
	$email->send();
	}else{
		// If email fields are not set, do nothing but load the page
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="All" />
<meta name="resource-type" content="document" />
<meta name="revisit-after" content="30 days" />
<meta name="classification" content="consumer" />
<meta name="distribution" content="global" />
<meta name="rating" content="general" />
<meta name="description" content="Welcome to Heartfelt Creations! We design and manufacture our own line of unique and creative Rubber Art Stamps for all stampers and scrapbookers. We also carry many accessories that will add the finishing touch to all your projects." />
<meta name="keywords" content="Heartfelt Creations, Golden Rule Supply, Rubber Stamps, Scrapbooking, Rubber Sheets, Stamps, Stamp Designs, Midwestern Style Stamps, Insprirational Stamps,
Scrapbooking Tools, Rubber Art Stamps, Card Ideas, Handmade Cards, Wholesale Stamps." />
<link rel="bookmark" href="../favicon.ico" />
<link rel="shortcut icon" href="../favicon.ico" />
<title>Heartfelt Creations | Contact</title>
<link href="../css/common.css" rel="stylesheet" type="text/css" />
<link href="../css/contact.css" rel="stylesheet" type="text/css" />
<link href="../css/cart_styles.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="../css/ie7_less.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="../css/cssmenu.css" />
<script type="text/javascript" src="../javascripts/jquery.min.js"></script>
<script type="text/javascript" src="../css/accordionmenu.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script type="text/javascript">
ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})
</script>
<link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<script src="../ScriptLibrary/jquery.min.js" type="text/javascript"></script>
<script src="../ScriptLibrary/jquery.inputHintBox.js" type="text/javascript"></script>
<script src="../ScriptLibrary/jquery.maskedinput-1.2.2.js" type="text/javascript"></script>
<script src="../ScriptLibrary/jquery.validate.min.js" type="text/javascript"></script>
<script src="../ScriptLibrary/dmx.jquery.validate.js" type="text/javascript"></script>
<script src="../ScriptLibrary/jsvat.js" type="text/javascript"></script>
<?php
// dmxValidatorJSStart
$dmxval1->generate_javascript_and_css();
// dmxValidatorJSEnd
?>
</head>
<body class="body">
	<div class="bordertop">
    </div>
	<div class="wrap"><div class="mainwrapper">
		<div class="head">     
   	  <div class="cartcontain">
                <?php echo($cartweaver->cw3CartLinks());?>
          </div><a href="http://76.12.247.125/"><img src="../Images/Logo_Pink.jpg" name="logo" class="logo" border="0px" alt="Heartfelt Creations" /></a>
	  </div>
            <?php require_once('../main_menu.php'); ?>
   	  <div class="welcome">
        		<span class="welcomehead">Contact Us</span>
   	  </div>
<div class="left_contain">
<?php require_once('../left_menu.php'); ?>
            	<div class="box_left_shows"><?php require_once('../email_signup.php'); ?>
</div>
   	  </div>
<div class="contact_centercontent">
  <div id="TabbedPanels1" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup"><li class="TabbedPanelsTab"><img src="images/snailmail_contact.jpg" width="200" height="81" alt="Snail Mail" /></li><li class="TabbedPanelsTab"><img src="images/phone_contact.jpg" width="200" height="81" alt="Phone" /></li><li class="TabbedPanelsTab"><img src="images/email_contact.jpg" width="200" height="81" alt="Email" /></li></ul>
    <div class="TabbedPanelsContentGroup">
      <div class="TabbedPanelsContent">
<strong class="promo_text">Visit our retail location, located in the Country Center in  Nappannee Indiana.</strong><br />
        <span class="normal_text"><?php if (isset($_SESSION["StoreAddress"])) { echo "". $_SESSION["StoreAddress"]."<br />"; }?>
        <?php if (isset($_SESSION["StoreCity"])) { echo "". $_SESSION["StoreCity"].""; }?> <?php if (isset($_SESSION["StoreState"])) { echo "". $_SESSION["StoreState"].""; }?> <?php if (isset($_SESSION["StoreZip"])) { echo "". $_SESSION["StoreZip"].""; }?></span><br />
        <span class="details1"><a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=1309+East+market+St+Nappanee+In+46550&amp;sll=37.0625,-95.677068&amp;sspn=34.313287,79.013672&amp;ie=UTF8&amp;ll=41.443579,-85.986514&amp;spn=0.00793,0.01929&amp;z=16&amp;iwloc=A" target="_blank" class="details">Directions</a></span>
        <br />
        <strong class="promo_text">Mail Orders:</strong><br />
        <span class="normal_text"><strong>Heartfelt Creations</strong><br />
        <?php if (isset($_SESSION["CompanyAddress1"])) { echo "". $_SESSION["CompanyAddress1"]."<br />"; }?>
        <?php if (isset($_SESSION["CompanyCity"])) { echo "". $_SESSION["CompanyCity"].""; }?> <?php if (isset($_SESSION["CompanyState"])) { echo "". $_SESSION["CompanyState"].""; }?> <?php if (isset($_SESSION["CompanyZip"])) { echo "". $_SESSION["CompanyZip"].""; }?></span>
      </div>
      <div class="TabbedPanelsContent">
        <span class="normal_text"><?php if (isset($_SESSION["CompanyPhone"])) { echo "<strong>Phone:</strong>&nbsp;". $_SESSION["CompanyPhone"]."<br />"; }?>
        <?php if (isset($_SESSION["TollFreePhone"])) { echo "<strong>Toll Free:</strong>&nbsp;". $_SESSION["TollFreePhone"]."<br />"; }?>
        <?php if (isset($_SESSION["CompanyFax"])) { echo "<strong>Fax:</strong>&nbsp;". $_SESSION["CompanyFax"]."<br />"; }?>
        <br />
        <strong>Hours:</strong><br />
        Monday - Friday 9am to 5pm -- Eastern Time<br />
        <br />
        <strong>Retail Store Hours</strong><br />
        Monday - Friday 10am to 5pm -- Eastern Time<br />
        Saturdays: 10am to 3pm -- Eastern Time</span>
      </div>
      <div class="TabbedPanelsContent"><?php if (!isset($_POST["email"])){ ?>
      <strong class="promo_text">&nbsp;&nbsp;&nbsp;If you need to contact us by email please use the contact form or the email address below.</strong><br />
      <br /><form action="" method="post" name="contact" id="contact">
        <table>
        <tr>
          <td width="148" align="right"><strong class="normal_text">Name:</strong></td>
          <td width="277" align="left"><label>
            <input name="name" type="text" class="form_inputfileds" id="name" value="<?php echo dmxSetValue("", "name") ?>" />
            *</label></td>
          <td width="249" rowspan="6" valign="top" align="left"><span class="normal_text"><strong>Contact Info:</strong><br />
            <strong><?php if (isset($_SESSION["CompanyName"])) { echo $_SESSION["CompanyName"];} ?></strong><br />
  <?php if (isset($_SESSION["TollFreePhone"])) { echo "<strong>Phone:</strong>&nbsp;". $_SESSION["TollFreePhone"]."<br />"; }?>
  <?php if (isset($_SESSION["CompanyEmail"])) { echo "<strong>Email:</strong>&nbsp;". $_SESSION["CompanyEmail"].""; }?></span></td>
        </tr>
        <tr>
          <td align="right"><strong class="normal_text">Email:</strong></td>
          <td align="left"><label>
            <input name="email" type="text" class="form_inputfileds" id="email" value="<?php echo dmxSetValue("", "email") ?>" />
            *</label>
            <?php $dmxval1->generate_error("contact","email","emailcond",",,"); ?></td>
        </tr>
        <tr>
          <td align="right"><strong class="normal_text">Confirm Email:</strong></td>
          <td align="left"><label>
            <input name="confirm_email" type="text" class="form_inputfileds" id="confirm_email" value="<?php echo dmxSetValue("", "confirm_email") ?>" />
            *</label>
            <?php $dmxval1->generate_error("contact","confirm_email","emailcond",",,"); ?></td>
          </tr>
        <tr>
          <td align="right"><strong class="normal_text">Phone:</strong></td>
          <td align="left"><label>
            <input name="phone" type="text" class="form_inputfileds" id="phone" value="<?php echo dmxSetValue("", "phone") ?>" />
          </label>
            <?php $dmxval1->generate_error("contact","phone","allformats",",,"); ?></td>
          </tr>
        <tr>
          <td align="right"><strong class="normal_text">Subject:</strong></td>
          <td align="left"><label>
            <select name="subject" id="subject" class="form_inputfileds">
              <option value="General Question" selected="selected">General Question</option>
              <option value="Customer Service">Customer Service</option>
              <option value="Product Questions">Product Questions</option>
              <option value="Card Sample Questions">Card Sample Questions</option>
              <option value="Website Issues">Website Issues</option>
              <?php if (isset($_GET["subject"])) { ?><option value="<?php echo($_GET["subject"]);?>" selected="selected"><?php echo($_GET["subject"]);?></option><?php } ?>
              </select>
          </label></td>
          </tr>
        <tr>
          <td align="right"><strong class="normal_text">Comments/Questions:</strong></td>
          <td align="left"><label>
            <textarea name="comments" cols="25" rows="4" id="comments" class="form_inputfileds"><?php echo dmxSetValue("", "comments") ?></textarea>
          *</label></td>
          </tr>
        <tr>
          <td>&nbsp;</td>
          <td align="left"><strong class="normal_text">* Indicates a required field</strong></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td align="left"><input type="button" id="B1" name="B1" value="Send" onclick="javascript:validateForm()" class="formButton" /><label>
            <input type="reset" name="reset" id="reset" value="Reset" class="formButton" /><input name="send_email" type="hidden" value="send_email" />
          </label></td>
          <td>&nbsp;</td>
        </tr>
      </table>
      <br />
      </form>
      <script language="JavaScript" type="text/javascript">
	  <!--
function validateForm() 
{
 var okSoFar=true
 with (document.contact)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Please enter a valid email address.")
    email.focus()
  }
  var e1 = email.value
  var e2 = confirm_email.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("Email addresses you entered do not match.  Please re-enter.")
    email.focus()
  }

  if (okSoFar==true)  submit();
 }
}
// --></script>
      <?php 
}elseif (isset($message_sent)){ 
echo $message_sent;  
}else{
echo '<span class="error_message"><strong>Sorry we did not receive enough information, please click <a href="http://heartfeltcreations.us/contact/" class="details1">Here</a> to try again.</strong></span>';
}
?>
      </div>
</div>
  </div>
</div> 
	</div><?php require_once('../map_menu.php'); ?>
</div>
    <div class="borderbottom">
    </div>
<?php require_once('../footer.php'); ?>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:2});
//-->
</script>
</body>
</html>

Replied 07 Aug 2009 21:47:05
07 Aug 2009 21:47:05 Rich Beechy replied:
I want a response to my message that I posted!

Reply to this topic