alohatofu Posted April 24, 2007 Share Posted April 24, 2007 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 More sharing options...
ToonMariner Posted April 24, 2007 Share Posted April 24, 2007 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 More sharing options...
alohatofu Posted April 24, 2007 Author Share Posted April 24, 2007 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 More sharing options...
ToonMariner Posted April 24, 2007 Share Posted April 24, 2007 I refer you to my previous post... Its nowhere near as difficult as you think - its just a fair bit of php and js code to accomplish the task... Go read - go learn. You could do this in a day if you put your mind to it. Link to comment https://forums.phpfreaks.com/topic/48429-form-selection-target/#findComment-236815 Share on other sites More sharing options...
alohatofu Posted April 24, 2007 Author Share Posted April 24, 2007 Hmm Ok so I found something like this http://www.salix.gr/ajax_linked_selectboxes but ajax is like like Russian to me. What do you think of that link? I will try .. thanks =) Link to comment https://forums.phpfreaks.com/topic/48429-form-selection-target/#findComment-236817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.