If I may be so bold, I believe the syntax your looking for is as follows:

<form>
[- $fdat{'x'} = 'I was processed by embperl'; -]
<input type=text name=x value="[+ $fdat{'x'} +]">
</form>

Steve Wilder
Matrix Interactive, Inc.
http://www.matrixinteractive.net/
Desk: 248.814.8235
Cell: 248.894.3128
Fax : 248.814.8236

-----Original Message-----
From: Gerald Richter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 29, 2000 12:24 AM
To: Angus Lees; Embperl list
Subject: Re: escmode and OUT


>
> <form>
> [+
>  $escmode = 0;
>  $fdat{x} = 'I was processed by embperl';
>  '<input type="text" name="x">';
> +]
> </form>
>
> the input tag is not processed by embperl, and thus it doesn't get the
> default "value=$fdat{x}" added.
>

The input tag will _never_ be processed to get the value form %fdat when
it's part of your output. The only thing that changes when changing $escmode
is with $escmode=0 you get

<input type="text" name="x">

with $escmode=3 you get

&lt;input type=&quot;text&quot; name=&quot;x&quot;&gt;

The later one is display by the browser as text, where the first one is
interpreted by the browser as input tag.

NOTE: This behaviour occurs when you have set optRawInput, otherwise it gets
more complicated

>
> I can see why that behaviour is there, and it makes sense. tho the
> $escmode=0 docs only mention escaping special html characters, not
> disabling all parsing of html and [- -], etc blocks.
>

$escmode = 0 does _not_ disable any parsing, really only the escaping. If
you see anythingelse, it's a bug, but for me it works as expected.

> (heh, i think i found a way for neil to have files not processed by
> embperl. just use [- Execute({inputfile = '*', escmode = 0}) -] )
>

Therefor the above suggestion will not work

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
BEGIN:VCARD
VERSION:2.1
N:Wilder;Steve
FN:Steve Wilder
ORG:Matrix Interactive, Inc.
TITLE:President
TEL;WORK;VOICE:(248) 814-8235
TEL;CELL;VOICE:(248) 894-3128
TEL;WORK;FAX:(248) 814-8236
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20000814T125443Z
END:VCARD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to