perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harald Becker" <harald.bec...@webscope.de>
Subject RE: Fill out formular fields with embperl
Date Thu, 17 Jul 2003 18:52:22 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'; -]

Thank you, this works, but I've got a new problem :)
I need to declare the formular in a var and later I write it into the
document, and then Embperl does not fill out the formular... Is there a
solution, too ?

[-
	$fdat{info} = "testing";

$_[0]->{formular} = '
<form action="/test/form.htm">
<input type=text name=info>
</form>';

-]

[+ do{ local $escmode=0; $_[0]->{formular} } +]

Harald


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


Mime
View raw message