[Maypole] Intelligent CGI/Form processing

Marius Kjeldahl marius@kjeldahl.net
Fri, 25 Jun 2004 15:05:15 +0200


On Friday 25 June 2004 04:19, Carl Hayter wrote:
> [%# test list template -%]
> [%# USE Dumper -%]
> [%# Dumper.dump(request) -%]
> [% request.query.email %]

Using the information you provided, I managed to get it working. Basically, 
the posted values are stored in request.email. In addition, the CGI.input 
"default value" field was not named "Default" but "Value", so in short the 
following is what worked:

[% USE CGI %]

  <TR>
	<TH>Email
  	<TD>[% CGI.input ({Name => 'email', Value => request.params.email}) %]
  </TR>

This works just as fine without using the CGI module;

  	<TD><INPUT TYPE="text" NAME="email" VALUE="[% request.params.email %]">

Thanks,

Marius K.