Suggestion for dynamic display

Permalink 2 users found helpful
I want to show value from the database with respect to selected value.
<td><select name="category" id="category">
<?php   foreach ($var as row){?>
<option value="<?php echo $row['l_cat_id']; ?>" ><?php echo $row['lc_category'];?></option>
<?php } ?>
</select></td>


I want to print the value depends upon the l_cat_id.
If l_cat_id = 1, i want to retrieve the value from the database using this id.

How to perform this?
Any suggestions?

cjramki
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
You can do this by ajax call. If you don't know about ajax, try to learn through @John's Ajax Lesson add-on, its free.
http://www.concrete5.org/marketplace/addons/ajax-lessons/...

BTW don't mark your own Discussion as helpful for earning Karma even before getting any reply. Its not a good practice.

Rony
shankumars replied on at Permalink Reply
Hi @rony how to solve this following link task.....

http://www.concrete5.org/community/forums/customizing_c5/how-to-do-...

will you please regard this problem...more over the same task like cjramki....

thanks
Kumar