Jump to content

form selection target


alohatofu

Recommended Posts

I would like to design 1 php page where a dropdown list will appear. depending on the user's selection, it will go to the next dropdown list (the list will appear only after the first dropdown is selected) and so on.. .. at the end, a textarea box will appear that will display all the variables that the user have selected. How do I go about in making that happen?

 

appreciate the help

Link to comment
https://forums.phpfreaks.com/topic/48429-form-selection-target/
Share on other sites

this is a biggish undertaking - you will need to use ajax to improve the users experience and should consider making this work even without javascript.

 

the page should post data to itself at each step (when js is off) and you use that information to generate the new selects and inputs and textareas etc. when ajax is available then use that to send an ajax request based on the current information availabel on the form. This request will be another php script on the server which can generate the next html required - js can then append the html to the container element.

 

Sorry but there is sooo much to do on that script that you won't get a full answer in one post.

Link to comment
https://forums.phpfreaks.com/topic/48429-form-selection-target/#findComment-236809
Share on other sites

It looks like something I can't even imagine of accomplishing. Okay plan B.  I was thinking of using some IF ELSE statement to accomplish it but still don't know where to begin.

 

It's sort of like a "story telling" function (form). Let's just say I have 5 fields (drop down selection) all listed on the page.  Can this be accomplish? If so, how would I start them?

Link to comment
https://forums.phpfreaks.com/topic/48429-form-selection-target/#findComment-236811
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.