Validation Show If statement not displaying
I am working on a form with server side validation in php. The form validates the user’s change in profile and then displays one of several hidden tables depending on the fields that were completed. The information is posted to the same page. The problem I am having is when everything has been processed the validation Show If statement will not display a successfully completed message stored in a hidden table. The code below is what I am using; unfortunately, I am unable to get the hidden table to reveal itself after the page has been submitted.
<?php
if (ValidatedField("Profile","Profile")) {
if ((strpos((",".ValidatedField("Profile","Profile").","), "," . "") >= 0)) {
if (!((strpos((",".ValidatedField("Profile","Profile").","), "," . "1" . ",") !== false || "1" == "") || (strpos((",".ValidatedField("Profile","Profile").","), "," . "2" . ",") !== false || "2" == ""))) {
?>
<table width="265" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="265" align="left" bgcolor="#FFFFCC" class="red">(Password successfully changed)</td>
</tr>
</table>
<?php //WAFV_Conditional Profile.php Profile(:1,2)
}
}
}?>
Thanks in advance for any help.