On Fri, Jul 20, 2001 at 04:51:22PM -0400, Notabene wrote:
> I've discovered how to echo back to the user their entered 'name', 'e-mail
> address', 'topic area', and 'subject' data. What I have trouble with is the
> 'message body' data. I'm using a <TextArea> HTML tag in the form and it
> doesn't seem to be happy accepting variables as does the <Input> tag, of
> course. I can't do a value="$message_body", for example, within the
> <TextArea> tag. (Or, if I *can*, it doesn't seem to work for me...harumph!)
>
> So, my first question is: how do I display, or echo back, the user's e-mail
> message body so that they have the opportunity to edit it before sending it,
> in this context?
The <textarea>$message_body</textarea> was the proper suggestion. Be sure
to quote any HTML in $message_body.
You mentioned (in another email in this thread) that this textarea
suggestion wasn't working for you. In what way wasn't it working? What did
it do? What did you expect?
> Secondly, does anyone know of the 'proper' way to have a CGI / Perl lashup
> talk back to a FrontPage form to allow for Perl-based, extensive data
> validation (as opposed to the anemic 'validation' abilities that FrontPage
> forms have)?
I'm not sure what you mean by the terms "Perl lashup" or "FrontPage form",
and I don't know what kind of validation a FrontPage form does. My guess is
that it's all Javascript-based, in which case you'll have to duplicate all
of the checks its doing in your Perl script.
> Thirdly, and slightly off-topic for this list, -- remember my "...imperfect
> copy of my web page" -- how do I include FrontPage's background themes and
> navigation features for my copy of the form page. I'd like the validation
> 'response' page to look just like the original calling page and to have the
> user return to a calling page on the site, if possible.
This depends entirely on how FrontPage handles these themes and navigation
features of which you speak. If they're seperate files that are joined
together to form pages you could possibly stick those files in a place where
your Perl script can get to them, and the Perl script can assemble the page.
Otherwise, you'll probably have to hard-code the theme and layout in your
Perl script.
The real solution is to use a templating system, thereby seperating content
from programming logic, and make it far easier to maintain one look and feel
without having to modify many files. The Template Toolkit is good for this,
but may not be appropriate for your site.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]