perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cameron B. Prince" <cpri...@rideware.com>
Subject RE: Fill out formular fields with embperl
Date Thu, 17 Jul 2003 18:33:13 GMT
I think it will do what you want if you remove the value="..." token from
the input:

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

If you need a default value, set it by placing a value in fdat above the
input:

[- $fdat{info} = 'testing'; -]

Cameron

> -----Original Message-----
> From: Harald Becker [mailto:harald.becker@webscope.de]
> Sent: Thursday, July 17, 2003 1:12 PM
> To: embperl@perl.apache.org
> Subject: Fill out formular fields with embperl
>
>
> Is it possible, that Embperl automatically fills out the html formular
> fields and takes the values from %fdat or %idat ?
>
> The following example does not to work either with %idat or %fdat
> I don't want to set the form values with value="[+ $fdat{info} +]"
>
> test.htm:
>
> [- $fdat{info} = "rewritten"; -]
> <form action="test.htm">
> <input type="text" name="info" value="testing">
> </form>
>
> What should happen is that input field info has the value "rewritten"
> when printed to the browser.
>
> Harald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org


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


Mime
View raw message