tags:

views:

100

answers:

0

I have a form set up in PMWiki. The action sends it to a php script which takes the information and does several different actions. The php script needs to validate the information that comes from the PMWiki page. I know how to do all of that. However, if one of the fields doesn't validate, I want to reload the PMWiki page with all of the information still filled in, but with an error message. My first thought was to post all of the fields back to the starting page, but I can't make that work. I am open to any solution that allows me to continue to work with PMWiki as the base, which means that I can't do the form in a PHP page that is self validating (I've done that for other sites). And I don't want to serve up a separate form outside of PMWiki if it doesn't validate. Ideally, I'd like something like header('Location: mysite.com/MyPMWikiPage'); but that would be a post that could have all the fields sent back. Sorry if this seems so specific, but I know how to work around the problem, I want to learn how to solve this problem directly, unless that is not possible. PMwiki.org recommends server side validation, but I have been unable to find how to post back when it fails.