perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaiser, Matthew" <MKai...@midwestern.edu>
Subject Processing user created html alongside epl html
Date Thu, 25 Jun 2015 15:55:54 GMT
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-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message