PHP Classes

Validation class not working with PHP5

Recommend this page to a friend!

      Validation on General Form Fields  >  All threads  >  Validation class not working with PHP5  >  (Un) Subscribe thread alerts  
Subject:Validation class not working with PHP5
Summary:Validation class not working with PHP5
Messages:2
Author:Rudi Ahlers
Date:2007-11-22 14:16:28
Update:2007-12-29 23:08:16
 

  1. Validation class not working with PHP5   Reply   Report abuse  
Picture of Rudi Ahlers Rudi Ahlers - 2007-11-22 14:16:30
Hi all

I have a project that makes extensive use of this Form Validation Class, http://www.phpclasses.org/browse/package/2785.html


Recently we upgraded our server to run PHP 5.2, and this class breaks half of the project.

What I could gather, was the following:

Fatal error: Cannot access empty property in /home/intranet/public_html/includes/validation.class.php on line 6

Looking at the code, this is line 6:


$this->$jscript = $this->$jscript."\n<script language='Javascript'>";


Does anyone know how to fix the problem please?

  2. Re: Validation class not working with PHP5   Reply   Report abuse  
Picture of Rudy Folden Rudy Folden - 2007-12-29 23:08:16 - In reply to message 1 from Rudi Ahlers
Hi. In validate.class.php you need to change all "$this->$jscript" code to "$this->jscript"