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

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

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

Post 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?
Last edited by hairyjim on Thu Jun 23, 2005 3:04 am, edited 1 time in total.
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post 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
Post Reply