|
Posted by Jam Pa on 05/26/05 12:12
Hi!
Once again I am building a simple app that shows data that users can add
and manipulate from a form on a web page.
I would like to discuss about simple simple solutions to these common
problems. Please join in, and add your own comments, and questions.
My question is, whats a clever way of handling the part where user adds
data?
I have simple solution like this: 'commands' are sent through GET (in url)
to the server, where index.php or similar file includes other files
accordingly. Now this doesn't work well with OO where I am headed.
And I need lots of files, basically one or more per 'command' or 'action'.
Say for instance I have 'add entry' action in a blog. First the app must
show the user a form from which user can post their entry, then the app
must handle that data (another php file, ie. clean data up and add it to
the db) and finally display thanks on the client (third file, xhtml). Whew!
Navigation:
[Reply to this message]
|