[pmwiki-users] how to re-show form with pre-existing field data?
Hans
design5 at softflow.co.uk
Mon May 21 10:43:53 CDT 2007
Monday, May 21, 2007, 4:43:39 PM, Shi Sherebrin wrote:
> There are some required fields, and when they are left blank, the form is
> re-displayed with a "data missing" message. However, when this happens all the
> other forms that *were* filled out come back blank. Apparently this is
> something that should be solvable at the PmWiki level. I'd welcome ideas for
> how to do this.
try in a local config file:
# POST input values will be preserved
foreach ($_POST as $k=>$v) {
if(!is_array($v))
$InputValues[$k] = htmlspecialchars($v);
}
also use a late beta pmwiki version, as the input textarea now
supports $InputValues
~Hans
More information about the pmwiki-users
mailing list