Unless I'm misunderstanding you could always call execute with the
$user_html string as input:

>From memory Execute allows a scalar as input rather than a filename.

Cheers,

Andrew


On 26 June 2015 at 01:55, Kaiser, Matthew <mkai...@midwestern.edu> wrote:

> Hi, all.
>
> I have a page that takes html created by users
>
> However, the embperl formdata structures don't seem to be aware of it.
>
> Given parameters like this:
>
> %fdat = {
>        'answer_1' => 'one'
>        , 'answer_2' => 'two'
>        }
>
> and
>
> @ffld = [
>        'answer_1'
>        , 'answer_2
>        ]
>
> My user generated html parameter:
>
> $user_html = "Answer2: <input id='answer_2' name='answer_2' type='text'>";
>
> And my epl html contents is:
>
> <html><body><form>
> Answer1: <input id='answer_1' name='answer_1'><br>
> [+ $user_html +]
> </form></body></html>
>
> ----------------------------------
>
> The result I will get is:     {just pretend the brackets are textfields in
> html}
>
> Answer1: [ one ]
> Answer2: [        ]
>
> ---------------------------------------------------------
>
> I would like both text fields filled in with the form data, so clearly,
> the formdata processing must come after the embperl commands have executed,
> but that doesn't seem to be the case and i can't seem to find the
> appropriate options to direct Embperl to do so in this case.
>
> How do i get the user generated html to be processed along with the epl
> html, so the form data structures work upon all the html as intended?
> Could someone point me in the right direction, while I hunt through the
> documentation?
>
> Thanks
>
> Matthew E Kaiser
> IT Department
> Midwestern University - Downer's Grove Campus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org
> For additional commands, e-mail: embperl-h...@perl.apache.org
>
>

Reply via email to