in reply to Re: have cgi send data back to form on error
in thread have cgi send data back to form on error

The HTML is being generated with frontpage. I use frontpage because I admit the gui (ouch) is easy to use and quick to make changes. I feel so ashamed. I have not realy generated HTML with CGI.pm just using print <<ENDHTML but maybe I will have to look into it. The template idea has potential also but still a little more work to modify than with frontpage. Thanks for the direction.
  • Comment on Re^2: have cgi send data back to form on error

Replies are listed 'Best First'.
Re^3: have cgi send data back to form on error
by Errto (Vicar) on Feb 11, 2005 at 13:41 UTC
    print <<ENDHTML can work here as well. Since Perl interpolates strings, just stick the variables you want in the appropriate places like:
    use HTML::Entities; my $email = $q->param('email'); $email = encode_entities($email); print <<ENDHTML; <input type="text" name="email" value="$email"> ENDHTML