Re: Taking Multiple Values for The Same Form Field.

2005-10-29 Thread Wiggins d'Anconia
Bob O'Neill wrote:

Re: Taking Multiple Values for The Same Form Field.

2005-10-29 Thread Bob O'Neill
> I've found this thread very helpful, and have changed it to use Vars (from http://users.easystreet.com/ovid/cgi_course/) as I need a hash. This has replaced the following: foreach $entry (param()) { $fieldhash{$entry}=param($entry); Checkentr

Re: Taking Multiple Values for The Same Form Field.

2005-10-29 Thread Randal L. Schwartz
> "Ovid" == Ovid <[EMAIL PROTECTED]> writes: Ovid> As of CGI.pm version 2.63, if the name is supplied in the query string Ovid> but has no value, CGI.pm should return an empty string for that. This Ovid> should let you keep your @name and @email arrays in synch. Even if you Ovid> are using

Re: Taking Multiple Values for The Same Form Field.

2005-10-28 Thread Ovid
--- Sara <[EMAIL PROTECTED]> wrote: > Thanks for the quick respons, just need a bit more help. Now I need > to write > these values in a text file (I am fully aware of writing to files) > but where > I am gettin' confused is that : I told you that Name is a required > field, > but Email is opti

Re: Taking Multiple Values for The Same Form Field.

2005-10-28 Thread Sara
October 29, 2005 9:14 AM Subject: Re: Taking Multiple Values for The Same Form Field. --- Sara <[EMAIL PROTECTED]> wrote: use CGI; my $q = new CGI; my $name = $q->param('name'); Now What as multiple name values will be coming.?? Use list context: my

Re: Taking Multiple Values for The Same Form Field.

2005-10-28 Thread Ovid
--- Sara <[EMAIL PROTECTED]> wrote: > > use CGI; > my $q = new CGI; > > my $name = $q->param('name'); > > Now What as multiple name values will be coming.?? Use list context: my @names = $q->param('name'); Cheers, Ovid -- If this message is a response to a question on a maili

Taking Multiple Values for The Same Form Field.

2005-10-28 Thread Sara
Never thought of it before, but now I need help as how to pass multiple values of a form field with a single submit to script. ** example ** use CGI; my $q = new CGI; my $name = $q->param('name'); Now What as multiple name value