You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Michael Stevens <mi...@iii.co.uk> on 2001/04/27 13:35:49 UTC

yet another question

Hi.

2.0b3_dev-3 again

--cut here--
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>foo</title>
  </head>

  <body>
    <h1>foo</h1>

    <form method="post" action="index.epl">
    [- $fdat{x} = 1; -]
    [$ hidden $]
    </form>

    <hr>
    <address><a href="mailto:michaels@iii.co.uk">Michael
Stevens</a></address>
<!-- Created: Fri Apr 27 12:22:34 BST 2001 -->
<!-- hhmts start -->
Last modified: Fri Apr 27 12:22:59 BST 2001
<!-- hhmts end -->
  </body>
</html>
--cut here-

Under 1.3, modifying fdat in the page affected the output
of [$ hidden $]. In 2.0, it doesn't seem to affect it.

Is it meant to work like this? :)

Michael

http://www.iii.co.uk 
Interactive Investor International is a leading UK Internet personal 
finance service that provides individuals with the capability to identify, 
compare, monitor and buy online a number of financial products and services.

Interactive Investor Trading Limited, a subsidiary of Interactive Investor 
International plc, is regulated by the SFA.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: yet another question

Posted by Gerald Richter <ri...@ecos.de>.
>     [- $fdat{x} = 1; -]
>     [$ hidden $]
>
> Under 1.3, modifying fdat in the page affected the output
> of [$ hidden $]. In 2.0, it doesn't seem to affect it.
>

There is no difference in handling hidden in 1.3 and 2.0. In both versions
(if you don't give any parameter to hidden), hidden will only create fields
for elements that are in @ffld, so if you add a new element to %fdat you
need to resetup @ffld. Changing to

     [- $fdat{x} = 1; -]
     [- @ffld = keys %fdat -]
     [$ hidden $]

should work

Gerald


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

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org