Hi,
We've worked out a solution to get sticky form fields inside Apache::ASP
We use HTML::FillinForm and a custom tag to get the desired behaviour.
Put this is in global.asa:
sub fillin {
my $args = shift;
my $html = shift;
my $fif = new HTML::FillInForm;
my $output = $fif->fill(
scalarref => \$html,
fdat => $Apps::Param,
);
$Response->Write($output);
}
Note $Apps::Param is set to either the querystring or form data.
Replace with $Request->QueryString or $Request->Form if you wish.
Then put something like this in your apache configuration:
XMLSubsMatch fillin
Finally, surround your forms like this:
<fillin>
<form>
<input name="myfield">
</form>
</fillin>
And voila, instant filled in forms..
Note that a small variation to this technique allows for ASP3.0 style
evaluation of forms.
Instead use a 'form' function
sub form {
...
}
Then check the args to see if the param 'runat' is set to 'server'.
If so, do the funky stuff, if not, just spit it out...
--
Paul Lindner
[EMAIL PROTECTED]
Red Hat Inc.