I've messed around with the code so much I'm not sure where I'm at but the situation is now that if the correct Captcha is entered it works OK. BUT
If I change the code back to
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"ItemsDetail");
}
and enter a random Captcha entry I get the Items_Detail.php?invalid=true page without any form and buy button.
Which makes sense as the show region recordset criteria are not being met.
I'm thinking it would it be better to have a button in the show region on the items detail linking off to a clean form.