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日

Edit | Attach | (削除) Watch (削除ここまで) | Print version | History : r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010年12月21日 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

AltStyle によって変換されたページ (->オリジナル) /