<?php
error_reporting(E_ALL);
ini_set('display_errors','on'):changed to semicolon for it to work
?>
and send a link where I can see the problem.
error Fatal error: Cannot redeclare ValidatedField() (previously declared in C:\inetpub\wwwroot\ps4\WA_ValidationToolkit\WAVT_ValidatedForm_PHP.php:5) in C:\inetpub\wwwroot\ps4\webassist\form_validations\wavt_validatedform_php.php on line 21
here is the page
<?php
if (!session_id()) {
session_start();
}
function ValidatedField($page,$field) {
$theFields= "";
$retVal = "";
if (isset($_SESSION["WAVT_".$page."_Errors"])) {
$theFields = "&".$_SESSION["WAVT_".$page."_Errors"];
}
if (strpos($theFields,"&WAVT_".$field."=") !== false) {
$retVal = substr($theFields,strpos($theFields,"&WAVT_".$field."=")+strlen("&WAVT_".$field."="));
}
if (strpos($retVal,"&WAVT_") !== false) {
$retVal = substr($retVal,0,strpos($retVal,"&WAVT_"));
}
if ($retVal == "" && $page == $field) {
$retVal = ValidatedField($page,$field."_Errors");
}
return $retVal;
}
?>
thank you