Hi David...

Well, what you are trying do, is impossible.
I find best you to do thus:

[-
$fdat{testfield} = "Say 'hi'.";
-]
<html>
<body>
<form name="X" action="[+ $ENV{SCRIPT_URL} +]" method="post">
<input type="hidden" name="testfield">
</form>
</body>
</html>

Case you need use "" instead of '', you will have that create a sub that change '' by "".

ok?
Untill Soon.





From: David Hull <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Quotes in hidden input values from %fdat not escaped correctly.
Date: Tue, 28 Jan 2003 14:47:07 -0800

When Embperl 2.0b8 outputs the value attribute for hidden input fields
from the %fdat hash, it doesn't escape the double quotes correctly,
and the %fdat value is not preserved.  The following Embperl code
demonstrates the problem.

The Embperl code:

  [-
    $fdat{testfield} = 'Say "hi".';
  -]
  <html>
  <body>
  <form name="X" action="[+ $ENV{SCRIPT_URL} +]" method="post">
  <input type="hidden" name="testfield">
  </form>
  </body>
  </html>

produces:

  <html>
  <body>
  <form name="X" action="/test3.epl"  method="post">
  <input type="hidden" name="testfield" value="Say "hi.>
  </form>
  </body>
  </html>
--
David Hull

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

_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com


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

Reply via email to