PHP Classes

bug in method OutputEventHandlingAttributes

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Locating addresses on...  >  All threads  >  bug in method...  >  (Un) Subscribe thread alerts  
Subject:bug in method...
Summary:formsgeneration-2006-01-16
Messages:2
Author:Juan Manuel
Date:2006-01-27 00:03:48
Update:2006-01-27 01:18:35
 

  1. bug in method...   Reply   Report abuse  
Picture of Juan Manuel Juan Manuel - 2006-01-27 00:03:48
This method don't write correctly Event Handling Attributes for actions ONKEYUP, ONKEYDOWN... this is because on line 1321 a piece of code(."\"") is out of $function. To solve this problem replace line 1321:

old 1321: $function(" ".strtolower($name)."=\"".$this->EncodeHtmlString($action))."\"";

new 1321: $function(" ".strtolower($name)."=\"".$this->EncodeHtmlString($action)."\"");

I Hope new versions correct this bug.
Thanks!

  2. Re: bug in method...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-01-27 01:18:35 - In reply to message 1 from Juan Manuel
You are right. That was bug. I just fixed it now. You may try the fixed version downloading from the CVS repository:

meta-language.net/cvs/forms/forms.p ...