Tags:
create new tag
, view all tags

Feature Proposal: Add encode and newline Parameters to FORMFIELD

Motivation

When you feed a FORMFIELD into an HTML input field it needs to be html encoded. Although it is possible to enclose a FORMFIELD into an ENCODE, it will miss corner cases such as when the returned form field value contains quotes.

Description and Documentation

Add new encode="" parameter to FORMFIELD, same as type="" parameter in ENCODE, and encode="" parameter in URLPARAM.

Add also a newline="" parameter to FORMFIELD, same as newline="" parameter in URLPARAM.

Examples

<form>
<input type="text" name="LastName" value="%FORMFIELD{ "LastName" encode="html" }%" size="30" />
</form>

Impact

Implementation

-- Contributors: PeterThoeny - 2010-12-12

Discussion

This feature is now accepted after 7 days grace period.

-- PeterThoeny - 2010-12-20

This is now in SVN trunk. I added also a newline parameter, in line with VarURLPARAM.

-- PeterThoeny - 2010-12-21

 
Topic revision: r3 - 2010-12-21 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.