whoops.... It looks like an error on our side.  I found a module that was
doing some waky stuff to are POST data.  Thanks for you help.

-Pat-

-----Original Message-----
From: Patrick Tully [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 5:24 PM
To: embperl
Cc: Alex Schmelkin
Subject: RE: processing = signs in input


Hi, sorry its been a while since i last replyed to this thread.  I actually
found that this occurs ONLY if you POST the data.  So a GET request works
ok.  Here is the data dump from the code you gave me (slightly modified
because it has to be valid xsl):

GET Request (correct):
[19102]ERR: 24: Error in Perl code: $VAR1 = 'message_html';
    $VAR2 = ' Hello <font size="3">there</font>. This is html.';

POST Request (incorrect):
[18184]ERR: 24: Error in Perl code: $VAR1 = 'message_html Hello <font size';
    $VAR2 = '"3">there</font>. This is html.';

here is the modified code:
-EMPERL-----------------------------------

[-
use Data::Dumper;
 die Dumper %fdat if(defined(%fdat));
-]

<?xml version='1.0' encoding='utf-8' ?>
<page name="test.epl">
<fdat>
[$ while (($k, $v) = each %fdat) $]
    [+ "key = $k" +]|
    [+ "val = $v" +]|
[$endwhile$]
</fdat>
</page>

-XSL-------(CHANGE FORM METHOD GET/POST)------------------------------------
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;">]>
<xsl:stylesheet version="1.0" exclude-result-prefixes="duop"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:\
duop="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="page" name="test.epl">
<html>
  <title><xsl:value-of select="@title"/></title>
<body>
  <form method="GET">

    <table>
      <tr>
        <td><textarea name="message_html" rows="10" cols="70">
        Hello <font size="3">there</font>. This is html.</textarea></td><td>
<font color="red"></font></td>
      </tr>
      <tr>
        <td><textarea name="message_html2" rows="10"
cols="70"></textarea></td><td><font color="red"></font></td>
      </tr>
    </table>

    <input type="submit"/>
    <hr/>
    <xsl:value-of disable-output-escaping="yes" select="fdat"/>

 </form>

</body>
</html>

</xsl:template>

</xsl:stylesheet>




-----Original Message-----
From: Gerald Richter [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 1:36 AM
To: [EMAIL PROTECTED]; embperl
Subject: Re: processing = signs in input




> Sorry, it should have been test.  So heres the real code snipets:
>

I have tried this, but it doesn't fails for me. I append you my test script.
Please run it as it is, when you press the submit button, you should see the
result at the top of the page. Does it come out right? If not, please send
me the output.

If it does come out right, try to modify it until you see the same error as
in your code.

Gerald

BTW. You shouldn't do the following (also it works most times):

> <textarea name="message_html" rows="" cols="">Hello <font>there</font>.
> This is html.</textarea>

Instead you have to escape the < and >, like

> <textarea name="message_html" rows="" cols="">Hello
&lt;font&gt;there&gt;/font&gt,.
> This is html.</textarea>

When you don't have change the escape mode, Embperl will do this for you,
for any output you insert in the page

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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to