|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Javascript Arrays with PHP
Hi All,
I'm somewhat new to PHP and need some help. How do I populate several textbox fields with data from MySQL after I make a selection from a dropdown list which was also filled with a key field from the database ? From what I can see I need to store the extra fields in a Javascript array and referrence them later after a selection but I've been unable to do this. thanks in advance, |
|
#2
|
|||
|
|||
|
RE: Javascript Arrays with PHP
Hey,
Just thought I'd share my solution to the array problem. All I needed to do was define parallel arrays in javascript before I load the dropdown. Then when a selection is made from the selected index from the dropdown can be used to access information from the parallel arrays..... actually quite easy. Just needed to get my head around the timing with server side / client side scripts. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Javascript Arrays with PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|