Click to See Complete Forum and Search --> : form with multi select


andymnc
12-03-2003, 05:00 PM
hi everyone, i'm new here and a little nb.

I'm programming an application in php and need to integrate something javascript.

The main problem is this:
I've a form with 3 blocks:

1. a select box and a text box. Selecting a value in the select list I need the text box adjust its value itself.

2. another part, the same of 1, but when in 1 I select something from the list, i need that the select box here auto adjust itself, autoselecting a value (and updating the relative textbox)

3. a textbox that indicates the results between textbox1 and textbox2


The values of the 2 select lists are in 2 arrays.
the values those can be shown in the 2 textbox (1st and 2nd) are in 2 arrays.
The value of the 3rd is a sum of textbox1+textbox2


I don't really have an idea on how to solve this...

please help me,
Andymnc

pyro
12-03-2003, 05:25 PM
If this needs to happen automatically (ie. without sending a request to the server), you'll have to use JavaScript.

andymnc
12-03-2003, 06:08 PM
... ok thanks, but i really know this!
what i don't know is how making this in javascript...
can you help me?

(i put the same topic in the javascript section too... if i'm in error, please remove my thread from the php section... but i hope something having the same trouble had solved it.. :D )