vidyashankara Posted June 14, 2006 Share Posted June 14, 2006 Lets say I have 2 drop down boxes - X and Y. X has the names of a certian number of files.Y has to read the files and display certian rows in the file. How do you do that? Quote Link to comment https://forums.phpfreaks.com/topic/12006-form-handling-yet-again/ Share on other sites More sharing options...
thepip3r Posted June 14, 2006 Share Posted June 14, 2006 way too vague. are you talking about upon the selection of X, the different selections in Y changes to different readable lines in X? Quote Link to comment https://forums.phpfreaks.com/topic/12006-form-handling-yet-again/#findComment-45681 Share on other sites More sharing options...
vidyashankara Posted June 14, 2006 Author Share Posted June 14, 2006 [!--quoteo(post=383952:date=Jun 14 2006, 02:06 PM:name=thepip3r)--][div class=\'quotetop\']QUOTE(thepip3r @ Jun 14 2006, 02:06 PM) [snapback]383952[/snapback][/div][div class=\'quotemain\'][!--quotec--]way too vague. are you talking about upon the selection of X, the different selections in Y changes to different readable lines in X?[/quote]here is an example.The values of X are A, B, C, D. If the user selects A, The script must read A.txt and the values of Y should be all the rows in A.txt. Is it clearer now? Quote Link to comment https://forums.phpfreaks.com/topic/12006-form-handling-yet-again/#findComment-45684 Share on other sites More sharing options...
thepip3r Posted June 14, 2006 Share Posted June 14, 2006 if you wanted it to happen "on-the-fly" (without having to press a "submit" button) you'd have to use a client-side scripting lang like Javascript or Perl. Otherwise, you'd have to select A,B,C, or D, hit Submit and then Y could be propogated with different lines in A.txt, B.txt, etc. Quote Link to comment https://forums.phpfreaks.com/topic/12006-form-handling-yet-again/#findComment-45689 Share on other sites More sharing options...
vidyashankara Posted June 14, 2006 Author Share Posted June 14, 2006 [!--quoteo(post=383960:date=Jun 14 2006, 02:19 PM:name=thepip3r)--][div class=\'quotetop\']QUOTE(thepip3r @ Jun 14 2006, 02:19 PM) [snapback]383960[/snapback][/div][div class=\'quotemain\'][!--quotec--]if you wanted it to happen "on-the-fly" (without having to press a "submit" button) you'd have to use a client-side scripting lang like Javascript or Perl. Otherwise, you'd have to select A,B,C, or D, hit Submit and then Y could be propogated with different lines in A.txt, B.txt, etc.[/quote]Looks like i need to learn javascript! Quote Link to comment https://forums.phpfreaks.com/topic/12006-form-handling-yet-again/#findComment-45691 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.