installed the latest databridge and set validation on a form. It works on my testing server but not on my remote server.
installed the latest databridge and set validation on a form. It works on my testing server but not on my remote server. When i press the trigger submit button, nothing happens at all. On my testing server, I get the progress bar showing and all of the validations work. On my remote server, nothing happens.
I am thinking some file is not uploaded but can't figure out what?
<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php
if (isset($_POST["submit1"]) || isset($_POST["submit1_x"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_contactus_372_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["name1"]))?$_POST["name1"]:"") . "",false,1);
$WAFV_Errors .= WAValidateEM(((isset($_POST["email1"]))?$_POST["email1"]:"") . "",true,2);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["message1"]))?$_POST["message1"]:"") . "",false,3);
$WAFV_Errors .= WAValidateLE(strtolower(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"")) . "",strtolower($_SESSION['captcha_Security_Code_1']) . "",true,4);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contactus_372");
}
}
?>
Form code
<div id="form2_ProgressWrapper">
<form action="" method="post" enctype="multipart/form-data" name="form2" id="form2">
<p>*Name:<br />
<input name="name1" type="text" value="<?php echo(ValidatedField("contactus_372","name1")) ?>" /><br />
<?php
if (ValidatedField('contactus_372','contactus_372')) {
if ((strpos((",".ValidatedField("contactus_372","contactus_372").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span class="style1"> Please enter your full name. </span>
<?php //WAFV_Conditional contact-us.php contactus_372(1:)
}
}
}?>
</p>
<p>*Email Address:<br />
<input name="email1" type="text" id="email1" value="<?php echo(ValidatedField("contactus_372","email1")) ?>" /><br />
<?php
if (ValidatedField('contactus_372','contactus_372')) {
if ((strpos((",".ValidatedField("contactus_372","contactus_372").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span class="style1">Please enter valid email address.</span>
<?php //WAFV_Conditional contact-us.php contactus_372(2:)
}
}
}?>
</p>
<p>Phone:<br />
<input name="phone3" type="text" id="phone3" value="<?php echo(ValidatedField("contactus_372","phone3")) ?>" />
</p>
<p>Message:<br />
<textarea name="message1" id="message1" cols="45" rows="5"><?php echo(ValidatedField("contactus_372","message1")) ?></textarea><br />
<?php
if (ValidatedField('contactus_372','contactus_372')) {
if ((strpos((",".ValidatedField("contactus_372","contactus_372").","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>
<span class="style1">Please enter your message so that we know better how to assist you.</span>
<?php //WAFV_Conditional contact-us.php contactus_372(3:)
}
}
}?>
</p>
<p><img id="capt1" src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=A8A2D1&gridorder=behind&noisefreq=20&noisecolor=A8A2D1&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=A8A2D1" alt="security code" width="200" height="50" /><img src="webassist/captcha/images/refresh.png" height="18" onclick="document.getElementById('capt1').src+='&ref=1'" /><br />Not case sensitive.<br />
<input id="Security_Code_1" name="Security_Code_1" type="text" value="" /><br />
<?php
if (ValidatedField('contactus_372','contactus_372')) {
if ((strpos((",".ValidatedField("contactus_372","contactus_372").","), "," . "4" . ",") !== false || "4" == "")) {
if (!(false)) {
?>
<span class="style1">Your entry did not match the security code.</span>
<?php //WAFV_Conditional contact-us.php contactus_372(4:)
}
}
}?>
</p>
<p>Attach a file:<br />
<input type="file" name="attach1" id="attach1" />
</p>
<p>
<input type="submit" name="submit1" id="submit1" value="Submit" />
</p>
</form>
</div>