close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Validation If not displaying for Validation Pass

Thread began 10/02/2019 3:06 pm by Nathon Jones Web Design | Last modified 10/09/2019 1:48 pm by Nathon Jones Web Design | 59 views | 6 replies

Nathon Jones Web Design

Validation If not displaying for Validation Pass

I've always used Validation Show If to display a message if validation fails.
I've tried setting up a page that displays a message if validation passes, however despite the validation passing, confirmed by the appended querystring on $WAFV_Redirect, the Validation Show If section is not displaying.

The server behaviour...

if (isset($_POST["smcresetBTN"]) || isset($_POST["smcresetBTN_x"])) {
$WAFV_Redirect = "reset.php?ve=1";
$_SESSION['WAVT_reset_570_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateEM(((isset($_POST["SMCuserUSER"]))?$_POST["SMCuserUSER"]:"") . "",true,1);
$WAFV_Errors .= WAValidateUnique("csdbmysqli",$csdbmysqli,$database_csdbmysqli,"SMCuser","SMCuserID","none,none,NULL","0","SMCuserUSER","',none,''","".(((isset($_POST["SMCuserUSER"]))?$_POST["SMCuserUSER"]:"")) ."",true,2);

if ($WAFV_Errors != "") {

The form with the Validation Show If area...

<form action="" name="SMCresetpwFORM" method="post">
<div class="form-group">
<label for="SMCuserUSER" class="sr-only">E-mail address</label>
<input type="email" name="SMCuserUSER" id="SMCuserUSER" class="form-control" placeholder="Enter your e-mail address" value="<?php echo(ValidatedField("reset_570","SMCuserUSER")) ?>" required>

if (ValidatedField('reset_570','reset_570')) {
if ((strpos((",".ValidatedField("reset_570","reset_570").","), "," . "") >= 0)) {
if (!((strpos((",".ValidatedField("reset_570","reset_570").","), "," . "2" . ",") !== false || "2" == ""))) {
<small class="text-danger">Are you sure you've entered the correct e-mail address?</small>
<?php //WAFV_Conditional reset.php reset_570(:2)
<button class="btn btn-info btn-block" type="submit" name="smcresetBTN" id="smcresetBTN"><i class="fal fa-key"></i> Reset Password</button>

Hope you can help. Thank you.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...