Hi everyone,
I have just begun to code webpages using Perl and CGI.pm (by Lincoln Stein)
not too long ago and I am encountering this problem.
Basically, on one webpage, there is a link which passes data as part of the
url like the one below:
http://mysite/test.cgi?field1=abc&field2=def ghi
As some of the experienced developer would know that this may not work
properly because in field2 there is a space in the contents - def ghi.
As a result, when test.cgi grabs the cgi parameter field2, it could only
read it as 'def' instead of 'def ghi'.
I understand that in order to get this work, I need to parse the whole url
string and change whitespaces to %20. However, according to CGI.pm, that
has already been taken care of. So, I don't really know why it doesn't work
for me. Also, on the location box of Netscape, I can see that the parameter
values are correctly passed. In order words, I can see the url is showing
...test.cgi?field1=abc&field2=def ghi
For your information, inside test.cgi, I already use $cgi->param('field2')
to grab the contents but it still returns as 'def'.
Can someone out there please help?
Best Regards,
John L
I
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]