[Templates] CGI plugin weirdness

David Hodgkinson daveh@hodgkinson.org
17 Aug 2000 14:30:20 +0100


I've been trying to use the CGI plugin and I've got a couple of
questions:

1. I'm tryin to use _any_ for element, and ALL the text, like for
naming fields, is escaped:

[% USE q=CGI %]
[% q.textfield({ Name => "foo" Size => "50" }) %]

Gives:

<INPUT TYPE="text" NAME="&#102;&#111;&#111;"  SIZE=50>
 

2. Can I set a default for a text field? Default doesn't seem to work:

parse error: search_form.shtml line 2: unexpected token (DEFAULT)
[% q.textfield({ Name => "foo" Size => "50" Default => "Arse" }) %] at ./example.pl line 52.

Any offers? I'd like to be able to use CGI.pm's HTML generating
methods for it.

-- 
Dave Hodgkinson,                             http://www.hodgkinson.org
Editor-in-chief, The Highway Star           http://www.deep-purple.com
      Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -----------------------------------------------------------------