PHP Classes

form generation class

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  >  form generation class  >  (Un) Subscribe thread alerts  
Subject:form generation class
Summary:$form->ReadOnly=1;
Messages:3
Author:Chris Grafix
Date:2005-10-19 21:07:28
Update:2005-10-22 08:34:26
 

  1. form generation class   Reply   Report abuse  
Picture of Chris Grafix Chris Grafix - 2005-10-19 21:07:28
Hi,
I am using Manuel Lemos's form generation/validation class - great class.
I somehow can't figure out how to avoid that the form, after successful validation/submitting, is output once more ($form->ReadOnly=1;) before I redirect to another page.

Thank you for your help,

Chris Grafix,
PANOSPHERIC Virtual Imaging

  2. Re: form generation class   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-10-21 22:30:13 - In reply to message 1 from Chris Grafix
That is just an example script. You can create your form scripts in whatever way you want.

If you do not want to output the form, you can just make the output of the form conditional at the bottom of the script:

if(!$doit)
$form->DisplayOutput();

  3. Re: form generation class   Reply   Report abuse  
Picture of Chris Grafix Chris Grafix - 2005-10-22 08:34:26 - In reply to message 2 from Manuel Lemos
Thank yo very much that fixed my problem. I got a long way to go learning PHP/MySQL.

best regards,
Chris Grafix
PANOSPHERIC Virtual Imaging