the ?invalid=true on the end means validation is failing. we need to know which validation is failing.
find:
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"ItemsDetail");
}
and change it to:
if ($WAFV_Errors != "") {
die($WAFV_Errors);
PostResult($WAFV_Redirect,$WAFV_Errors,"ItemsDetail");
}
this will tell us what is not working.