LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   master - details forms with php (https://www.linuxquestions.org/questions/programming-9/master-details-forms-with-php-634237/)

htamayo 04-09-2008 01:50 PM

master - details forms with php
 
Hi there, I had been browsing the internet for master - detail forms coded in php, but I only found examples or papers oriented to the M$ solutions. So, before start to code from the scratch this form I want to ask you:

-Could you send me some urls that would help me how to do this?

-is possible to do this in php -or might be using other free programming language?

best regards

graemef 04-09-2008 04:48 PM

Sure php can do that for you.

Assuming that you are using a database then essentially you would get php to display the query of the master table. when the user enters the details php will then query the database find out how many records there are that satisfy the query and then return the details in a table format, with a few extra rows to allow for new details to be added. Once the user is happy with their changes then they press a submit button and the changes are sent to the server where php takes over and stores it all on the database.

You will either want to use html hidden fields or php sessions(better) to keep track of the master details.

If you want live updates that is the details to be updated as they are changed then you will need to leverage the power of Javascript.


All times are GMT -5. The time now is 09:59 AM.