bchandel Posted August 23, 2009 Share Posted August 23, 2009 I have a typical form to collect information online and the fields are; Name-Text Category - Dropdown box showing 3 options say Young, Adult and Old Remarks-Text area I want to find if there is any way to update the category dropdown box dynamically without making changes in the form in usual way adding additional category. I was wondering if there can be a separate table for catgory where additional categories can be added and which become available for a user to be picked up as a choice in the dropdown box. Thanks! Link to comment https://forums.phpfreaks.com/topic/171529-need-help-in-designing-the-intelligent-form-thanks/ Share on other sites More sharing options...
kickstart Posted August 23, 2009 Share Posted August 23, 2009 Hi You can manipulate the contents of drop down list boxes. However to do this in php alone would require submitting the form and sending it again with the updated drop down list. What you can do it use Javascript to change the drop down list, or to make it more responsive use AJAX (ie, basically using javascript to call a php script to get more data in the background). All the best Keith Link to comment https://forums.phpfreaks.com/topic/171529-need-help-in-designing-the-intelligent-form-thanks/#findComment-904549 Share on other sites More sharing options...
bchandel Posted August 23, 2009 Author Share Posted August 23, 2009 Thanks for your help. Can you send some references where I can look how to develop these things. Thank you again! Link to comment https://forums.phpfreaks.com/topic/171529-need-help-in-designing-the-intelligent-form-thanks/#findComment-904550 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.