PHP Classes

Set ValidateOnlyOnServerSide global ?

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  >  How to Show Google Ma...  >  All threads  >  Set ValidateOnlyOnServerSide global ?  >  (Un) Subscribe thread alerts  
Subject:Set ValidateOnlyOnServerSide global ?
Summary:How to set ValidateOnlyOnServerSide for a form
Messages:2
Author:Ludwig Ruderstaller
Date:2007-10-24 18:15:26
Update:2007-10-24 19:30:29
 

  1. Set ValidateOnlyOnServerSide global ?   Reply   Report abuse  
Picture of Ludwig Ruderstaller Ludwig Ruderstaller - 2007-10-24 18:15:26
Hi,

is it possible to only validate serverside without having to add "ValidateOnlyOnServerSide" to each form-field ?

(ok i could just loop the input fields and add it, put that would be a waste of proccessing time)

TIA
Ludwig

  2. Re: Set ValidateOnlyOnServerSide global ?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-10-24 19:30:29 - In reply to message 1 from Ludwig Ruderstaller
If you mean not generating Javascript code for validation, for now you need to set the ValidateOnlyOnServerSide flag for each input. In the future I may add a class variable to disable Javascript generation for the whole form.