how to collect the entry in multiple text boxes
Anonymous Monk
created: 2006-04-08 16:07:23
I am automating a tool. The problem i am facing is that the number of text boxes to receive data is not fixed. If it was fixed i know i have to use say x varibles to collect data. ex i have a text file which has 3 lines ( i mean data.) This means i have to have 3 entry widgets and 3 corresponding variables to hold the entries. But the contents of the text file is not fixed. It may contain 3 lines or 30 lines or 300 lines. i am stuck at this point. could some one suggest to solve this problem
Re: how to collect the entry in multiple text boxes
created: 2006-04-08 17:30:13

Hello ,

could you post your code and tell us where you have the problem ?

Unfortunately , i dont understand what you want to do and what is your problem .

waiting your next message

bye

Re: how to collect the entry in multiple text boxes
created: 2006-04-08 21:46:23
This is the sort of thing that lists and loops were invented for.

Although you didn't say so, I'll assume that you're processing a CGI form. And of course, you'll be using the CGI module, correct?

Right, so it's easy. You just simply fetch a list of all keywords passed to your script, and then iterate through the list using a for or foreach loop.

Other than that, if you want some more specific help - post the code that's giving you problems and I'm sure somebody will take a look at it.

Cheers,
Darren :)

perlmonks.org content © perlmonks.org and ahmad, Anonymous Monk, McDarren

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03