Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Charles Newsgroups: comp.lang.php Subject: Dynamic form generation Date: Wed, 11 Apr 2012 20:48:16 -0700 (PDT) Organization: http://groups.google.com Lines: 8 Message-ID: <7262665.439.1334202496427.JavaMail.geo-discussion-forums@vbgx21> NNTP-Posting-Host: 24.116.1.66 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1334202496 22725 127.0.0.1 (12 Apr 2012 03:48:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 12 Apr 2012 03:48:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.116.1.66; posting-account=0TNT7AoAAABfgvAzb-BaNe7iUtYJdshD User-Agent: G2/1.0 Xref: csiph.com comp.lang.php:5471 I'm working on a database application, and I'd like to write a function that takes the table structure from a MySQL database table and generates a fresh data entry form from it each time someone browses to it. That way I can have four functions that serve the four purposes of data entry, view/query, edit, and delete, instead of 4 scripts for each table (the application has 64 tables so far) that have to be editted every time the table changes. Is it possible to use PHP to generate data entry forms on the fly? Does anyone have any recommendation for a reference resource or some sample code to study for this?