Problems with Serverside Validations
Hi,
I'm having really problems trying to use the Serverside Validations for a file extension.
Here is what the code is showing me at the moment:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "";
$_SESSION['WAVT_memformsInsert_455_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateFE(((isset($_FILES["file_memform"]))? preg_replace('/^.*\./', '', $_FILES["file_memform"]["name"]) :"") . "",".pdf",true,2);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"memformsInsert_455");
}
}
?>
I'm fairly green to all this, and followed all the instructions, plus searched the forums here, but the form will not allow me to upload anything at all with this validation added in.
Is there anything that anyone can see is wrong...??
Thanks for your help/