mtWeb  Home > Download > PHP form generationSitemap  Search

PHP form generation

Posted by martin on 28 Jun 2002, last updated on 9 Aug 2002.

PHP script for generating XHTML forms and validating them both with JavaScript and on the server-side.

Features

  • Generates both JavaScript and server-side validation code
  • Uses PEAR's HTML Table for table generation
  • Can process values for inserting into a database or use other filters

Download

html_form.tgz, downloaded 2609 times.
The complete code, tarred and gzipped
html_form.zip, downloaded 17073 times.
The complete code, zip compressed
html_form.php, downloaded 11772 times.
The form class
filter.php, downloaded 3559 times.
A class for filtering strings
common.js, downloaded 2376 times.
JavaScript file with general validation functions

Changelog

9 Aug 2002

  • Added setDefaults method to allow setting of default values after elements definitions

3 Aug 2002

  • Added select support

28 Jun 2002

  • First released

Dependencies

Comments

PHP
by () on 28 Nov 2002 1:31am GMT

Looks good to me

php
by Torkis Nasution (torkis_nasution@yahoo.com) on 31 Jan 2003 8:47am GMT

excelent

Documentation?
by Jeff Dickey (jdickey@seven-sigma.com) on 23 Feb 2003 8:18am GMT

How about some documentation or examples to show how to use the features in this? The 'rules' interface is hardly intuitive....

PEAR vs mySQL
by Red Penguin () on 23 Feb 2003 4:58pm GMT

I've read all the code and am preparing to implement. However one caveat to myself: Should I continue as my backend is mySQL? I'm thinking that I can re-write to suit my needs but am unsure of the modularity of all the dependent code/libraries/user class, etc...

Any response welcome.

Best regards,

-sjk

Example
by Jamie () on 1 Dec 2003 5:01pm GMT

Could anybody give an example of the html file .... makes live a bit easier for me.

Thanks

Jamie

script demo
by joe (jojo@mailinator.com) on 4 Feb 2004 11:54pm GMT

Martin,

You write great tutorials and scripts, it would be nice to have a demo, when possible.

tutoriols
by mark () on 16 Feb 2004 11:38am GMT

als ik wist waar dit over ging zou ik hem downloaden maar nu heeft het geeen zin te weinig uitleg op jullie site

Some Code Modification
by Mike (verify@mikeauten.com) on 22 Feb 2004 9:48am GMT

I modified the code a little bit to make it easier to understand. However, it still has issues and I need help finishing the rest. Check it out here: <a href="http://www.mikeauten.com/downloads/">http://www.mikeauten.com/downloads/</a> and let me know.

komen
by dito (anditra_26@hotmail.com) on 1 Apr 2004 3:25pm GMT

very good web for client,thanks

error
by sanjeeb kumar patra (sanjeeb_patra@rediffmail.com) on 29 Apr 2004 11:07am GMT

i run this script but it is showing me the following error

Call to a member function on a non-object in /var/www/html/user/signup.php on line 82

database trouble
by aza () on 14 May 2004 7:43am GMT

how i want to connect to database? it showed this message when i execute it. 'Couldn't select database.' What does it means..?.thanx

hello from germany
by fardin (fardin21de@yahoo.de) on 27 May 2004 10:41am GMT

hallo;

i need help,how can i use this script,

please tell me , please please !!

i need so this script

fardin

request
by puk (duang_ja02@hotmail.com) on 26 Jun 2004 6:51am GMT

where's begin_html()?

how to use form registration &login script
by karthikeyan (karthik775@yahoo.co.in) on 16 Dec 2004 9:13am GMT

i need your help!