in reply to have cgi send data back to form on error
you might have:<input type="text" name="Email" size="20">
And then a routine might load the page into a variable and perform the following replace (untested, but should theoretically work):<input type="text" name="Email" size="20" value="Email">
This will of course not work for textareas, selects, etc., but a slightly more advanced templating system will be able to manage those as well.$text =~ s/value="(.*?)"/'value="'.$query->param($1).'"'/eg;
|
|---|