Re: Multiple inserts to mysql using perl
"Vladimir V. Kolpakov" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
Taylor, --
> Any ideas. Either I need to use the CGI module a better way, or I need
> a little help on passing the variable or naming the variable.
Yes, cgi interface can return to you array of values
for single variable name,
so it's always better do not invent naming convention,
but rather use different type of internal data (array instead scalar).
Html SELECT also has multiple attribute,
and going there you would need array anyway.
In purpose of phone/email entry you seems to need <input text> instead.
--w
On Tue, Nov 09, 2004 at 01:18:28PM -0600, Lewick, Taylor wrote:
> Hi all, I have a simple web form where a user selects an application
> But it has come to my attention that some users want to enter multiple
> emails and numbers at once on a form. That way they don't select an
> app, enter a name, hit submit and then start over, etc
> for (1..15) {
> print "<select name='appname$_'>";
> print "<option value='$appid'>$appname</option>\n";
> Then the hard part for me is getting multiple variables. I was thinking
> I could either keep pushing onto an array the appname
>
> But I cant say push (@array, appname$_) because that isn't a meaningful
> variable...
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/[email protected]