![]() |
|
Do you know where your variables are? | |
PerlMonks |
Paragraph breaks in textarea field only for preview page generated by CGI::Formbuilderby AJRod (Scribe) |
on Jun 14, 2004 at 08:36 UTC ( #366443=perlquestion: print w/replies, xml ) | Need Help?? |
AJRod has asked for the wisdom of the Perl Monks concerning the following question: This is my first time to write a form and I'm using CGI::Formbuilder. I'm needless to say a very poor perl novitiate. The task involves, among other form elements, the use of a textarea the results of which goes written much later on into a plain text file (PTF) which must remain so, without html tags. But before that, the form's task is to preview the page to the user through formbuilder's confirm(). However, when this is executed, the text is shown without any paragraph breaks. I have tried making substitutions with the resulting parameters but only the hidden values get modified (by ampersand-coded html tags at that). I need the true html tags temporarily on the preview display page only, not on the actual (hidden) data. In the template (using HTML::Template), I have tried wrapping the text value in <pre> tags but this doesn't look to good either. (By the way, I'm using one template for both the data entry and preview modes.) How can I accomplish this in Formbuilder? Anyone's help is much appreciated.
Back to
Seekers of Perl Wisdom
|
|