Single HTML form post affecting multiple HTML frames/PHP scripts
| From: | Richard Lewis | Date: | Wed, 14 Apr 2004 08:57:53 +0000 |
| Subject: | Single HTML form post affecting multiple HTML frames/PHP scripts | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183293@lists.php.net to get a copy of this message | ||
I am writing a database front end in PHP for a record library.
My interface is divided into several HTML frames the first of which contains
an HTML select element listing all of the top-level records (CDs) and
several buttons to perform certain operations on the selected record (e.g.
delete, edit).
When the 'Edit' button is clicked the record's contents are displayed in
another frame so that it can be altered.
Each of these top-level records (CDs) has a number of 'sub-records' (tracks)
which I would like to be able to display in an HTML select element in a
third frame (as above).
Ideally, when the user clicks 'Edit' in the first frame with a CD selected,
not only should its details appear in the second frame, but also its tracks
(sub-records) should appear in the third frame.
So is there a way of making a single form post affect two scripts in
different HTML frames? Or a way of posting values from the second frame to
the third automatically (i.e. without the user clicking an HTML 'submit'
button)?
Cheers,
Richard