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
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 what if : my @name = ('Sara', 'John', 'D

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

Re: CGI Upload() for nonexistent files?

2005-10-28 Thread Wiggins d'Anconia
Joby Jones wrote: > Hello all, > I have a question about the CGI upload() > function. > > Why does it return a valid file handle to a file > that does not exist on the client (web browser) > machine, and what's the best way to handle this? > Presumably because this is really a cl

Re: hardcoded paths

2005-10-28 Thread Wiggins d'Anconia
Dermot Paikkos wrote: > Hi, > > I am moving a site from once host to another. There are lots of > hardcoded fully qualified paths to the localhost (EG > http://myserver/cgi-bin/someprog.pl?name=val & > http://myserver/css/mystyle.css). > > I am pretty sure this isn't good practise but I am not

CGI Upload() for nonexistent files?

2005-10-28 Thread Joby Jones
Hello all, I have a question about the CGI upload() function. Why does it return a valid file handle to a file that does not exist on the client (web browser) machine, and what's the best way to handle this? Details: 1. A user enters a nonexistent file name in an upload

Re: hardcoded paths

2005-10-28 Thread David Dorward
On Fri, Oct 28, 2005 at 10:28:20AM +0100, Dermot Paikkos wrote: > I am moving a site from once host to another. There are lots of > hardcoded fully qualified paths to the localhost > I am pretty sure this isn't good practise but I am not a bit lost as > to what are good alternatives. Relative

hardcoded paths

2005-10-28 Thread Dermot Paikkos
Hi, I am moving a site from once host to another. There are lots of hardcoded fully qualified paths to the localhost (EG http://myserver/cgi-bin/someprog.pl?name=val & http://myserver/css/mystyle.css). I am pretty sure this isn't good practise but I am not a bit lost as to what are good alter