|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
multi check box problem
i have a table in my DB called Movies that includes Title,Directror.....Category1,Category2,Category3 (a movies may be in more than one category)
i got one andim page that loads after i choose a specific movie. That pages has all categories as check boxes (about 10-15 check boxes) when it loads i want the apropriate checkboxes to checked. how i do that ?actually whats the concept? |
|
#2
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'Client Side Things' by codekadiya.
Reason: checkboxes are clientside |
|
#3
|
|||||
|
|||||
|
RE: multi check box problem
The concept here would be to evaluate the data that corresponds to each checkbox to determine if that checkbox was checked or not when the data was inserted into the database. For example, when diplaying the data on the screen, you would use IF statements to evaluate the value af a field retured from a query and then dynamically specify that the box should be checked. Here is a code example.
Note: since I don't have your specific code to base this off of, it will be very general... php Code:
that will check the checkbox automatically if the value of the data pulled from the db is equal to the value of the checkbox. Hope that makes sense. |
|
#4
|
|||
|
|||
|
RE: multi check box problem
let me test that logic
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > multi check box problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|