FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Dynamic form generation
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Dynamic form generation [message #177646 is a reply to message #177642] Thu, 12 April 2012 04:52 Go to previous messageGo to previous message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma:
Member
In article
<7262665.439.1334202496427.JavaMail.geo-discussion-forums@vbgx21>,
Charles <cchamb2(at)gmail(dot)com> wrote:

> 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?

I did this for a site I created to manage the membership database behind
it. You'll have to read up on how to use php to access mysql (or
whatever database you're using as a backend), display forms, and process
them via get or post. It's a little more than can be discussed here. I
got a book on building a web site using php but it's most likely
hopelessly out of date by now.

If you want to do this 'by yourself', then you're going to have to write
or reuse various functions to do all this stuff.

--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Data injection problems
Next Topic: Do you want to develop PHP for the Web and make money
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 13:10:33 GMT 2024

Total time taken to generate the page: 0.05070 seconds