Jump to content


Photo

Form handling - Yet again!


  • Please log in to reply
4 replies to this topic

#1 vidyashankara

vidyashankara
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 14 June 2006 - 06:58 PM

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?


#2 thepip3r

thepip3r
  • Members
  • PipPipPip
  • Advanced Member
  • 289 posts

Posted 14 June 2006 - 07:06 PM

way too vague. are you talking about upon the selection of X, the different selections in Y changes to different readable lines in X?

#3 vidyashankara

vidyashankara
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 14 June 2006 - 07:10 PM

[!--quoteo(post=383952:date=Jun 14 2006, 02:06 PM:name=thepip3r)--][div class=\'quotetop\']QUOTE(thepip3r @ Jun 14 2006, 02:06 PM) View Post[/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?


#4 thepip3r

thepip3r
  • Members
  • PipPipPip
  • Advanced Member
  • 289 posts

Posted 14 June 2006 - 07:19 PM

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.

#5 vidyashankara

vidyashankara
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 14 June 2006 - 07:22 PM

[!--quoteo(post=383960:date=Jun 14 2006, 02:19 PM:name=thepip3r)--][div class=\'quotetop\']QUOTE(thepip3r @ Jun 14 2006, 02:19 PM) View Post[/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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users