|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing values from generated select box input fields - This is driving me nuts!
Hello everyone! URL
I really need some help dears.. URL Here's what I desperatly need to acomplish: when the user selects an option in the select box, the ID of a particular row is called and allows the input fields to echo the correspondent column values. From what gather, I can do this via javascript. Is there any other way? And how can I achieve this? Thank for all the help! URL PHP Code:
|
|
#2
|
|||
|
|||
|
do you want that on focus or are you adding a submit button for this? also.. no offence but your code is messy kinda makes it hard to read
so i really cant understand it. Why not use Javascript? |
|
#3
|
|||
|
|||
|
Quote:
Sorry about the code! The submit button will update data in my table. I know I can use javascript, the problem is how. ![]() |
|
#4
|
|||
|
|||
|
Quote:
Ok, currently i dont have db connection because im upgrading my other system.. but i will post something that you can work with that will surely help you alot *Edited* PHP Code:
havent tested it.. so i dont know if it will fully work.. but looks like it does.. anyways.. if not i will hit you up laters |
|
#5
|
|||
|
|||
|
Quote:
Thank you so much for the assistance! |
|
#6
|
|||
|
|||
|
Thank you so much, but I don't think I explianed myself well.
I need the combo box to changer the values of the input fields. The values are fetched from the database. |
|
#7
|
|||
|
|||
|
Essentially you are looking to do the following:
a. Query the database and return a specific amount or records b. Place all records into Javascript variables in the page c. Once a select box is changed, the value triggers the appropriate javascript variable and the values are pulled up into the input box fields. Does this get it? I hope this helps. From here you should be able to write all the code yourself.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Passing values from generated select box input fields - This is driving me nuts! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|