LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-09-2008, 01:50 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
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
 
Old 04-09-2008, 04:48 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP having issues while accepting variables from forms ashesh0326 Programming 4 05-07-2007 07:01 AM
LXer: Html Forms and PHP LXer Syndicated Linux News 0 01-09-2007 01:33 AM
MySQL results to html forms using PHP xemous Programming 3 08-15-2005 03:27 PM
Best mailer to use for a website with PHP email forms gbkyle Linux - Software 1 07-07-2005 04:00 AM
passing an array from html-forms to php prabhatsoni Linux - Software 2 06-04-2005 12:11 AM


All times are GMT -5. The time now is 03:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration