close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Validation show if

Thread began 2/01/2019 2:52 am by María Luisa | Last modified 2/05/2019 9:48 am by María Luisa | 588 views | 5 replies

María Luisa

I still have the problem

Hello Ray, thanks for answering.

The truth is that I still have the problem.

I have updated my validation script as well:

----

<?php
if (isset($_POST["FAIV1"]) || isset($_POST["FAIV1_x"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_crearFAI2_506_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateNM(((isset($_FILES["V1Pru"]))?$_FILES["V1Pru"]["size"]:"") . "",100,52428800,0," ,",true,1);
$WAFV_Errors .= WAValidateNM(((isset($_FILES["V1Cert"]))?$_FILES["V1Cert"]["size"]:"") . "",10,12582912,0," ,",true,2);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"crearFAI2_506");
}
}
?>

----

The validation show if they are placed in two span tags like this:

----

<span style="color:#ffffff; background-color:#ff0000; padding:4px; text-align:center;"> El tamaño de su documento debe ser inferior a 50 MB. Comprímalo. </span>
<?php //WAFV_Conditional crear_FAI_2.php crearFAI2_506(1:)
}
}
}?>

<span style="color:#ffffff; background-color:#ff0000; padding:4px; text-align:center;"> El tamaño de su documento debe ser inferior a 12 MB. Comprímalo. </span>
<?php //WAFV_Conditional crear_FAI_2.php crearFAI2_506(2:)
}
}
}?>

---

And it still happens that if the condition is met (the size of the files is less than required) the files go up and if it is not met they do not go up, although in this case they do not show the error messages to warn the user that they need to compress them, it's what I want...

Could it be because my name change script interferes to remove particular characters from my language and add the date to the name?

Can you or someone give me a clue?

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

Content

rating

Layout

rating

Ease of use

rating

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...