Re: Taking Multiple Values for The Same Form Field.

2005-10-29 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 optional. so

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 a POST,

Re: Taking Multiple Values for The Same Form Field.

2005-10-29 Thread Wiggins d'Anconia
Bob O'Neill wrote: Use list context: my @names = $q-param('name'); Cheers, Ovid 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()) {