|
Posted by Stephen Poley on 02/22/06 20:36
On Wed, 22 Feb 2006 16:10:00 +0100, Alex
<alexios.beveratos@physics.unige.ch> wrote:
>I have a mysql database to which I connect with my php scripts. The
>database contains articles. Name, Unit_Price and Reference
>
>Now my client needs to order 5 items, click a button and a table with 5
>lines and 3 columns appears (until now easy)
>
>In the first column is a drop down box with a <select > and <options> in
>which I store all possible names.
>
>I would like than whenever the client changes one of the boxes (in my
>case there are 5) the Unite_Price column and Reference column in the
>line he just choose get automatically updated
I have to agree with Erwin that it's a little hard determining what
exactly the requirement is. You make it sound as if the client first has
to decide how many items to order, then what items to order, and only
then discovers what the price is. That seems very odd.
More usual would be to present a table of items, containing name, price
and reference for each item, and a checkbox against each item to tick,
or an input box to enter how many of each item is needed. That you can
do in HTML with no Javascript at all. But maybe you have something else
in mind?
--
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/
Navigation:
[Reply to this message]
|