Page 1 of 1

Javascript - Im not sure if my idea can work [SOLVED]

Posted: Wed Jun 22, 2005 8:44 am
by hairyjim
Hi all,

Basically I have a quantity field on my php page that a user manually updates to the desired amount.

Initially when the page loads I output a single dropdown list.

Now for the moment there is only a qty of 1 specified so only 1 list is shown.

What I wish to happen is when the quantity box is updated to whatever value output that number of lists.

My initial thought is that I could do an OnUpdate event for the QTY input that calls a function to take the value of the QTY entered.

I wish for this value to be used by PHP though. The dropdown lists are populated by data from a MySQL DB so I would want to take the QTY value and use a while loop in PHP that outputs x number of lists.

Any thoughts?

Posted: Wed Jun 22, 2005 9:24 am
by hairyjim
Oh oh oh I think i just found my answer in the use of Iframes (posted at the top of this forum) - should have looked before typing!

Jim