Ask a Question related to PERL Modules, Design and Development.
-
YesBalala #1
CGI.pm form query sometime return null value
I am using CGI.pm, and getting the parameters similiar to the
followings,
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:all);
:
my $task = param('task');
my $username= param('username');
Then I have a debug log as the next line. From the debug log, look
like there are times where task and username return nothing, although
it's been entered in the form.
I have a debug script in java, and when I point the form to submit to
that debug script instead of this perl script, it works all the time.
Seems like the problem comes in the perl side.
Does anyone got an idea about this?
Bosco.
Bosco
--
Due to heavy spamming, I was forced to use an invalid reply address.
Do NOT reply to this posting via email directly.
YesBalala Guest
-
Check for null query
I have some code something like this in a query of a query: SELECT query1.field1, query1.field2, query1.field3 FROM query1 WHERE field1 not in... -
xpath following-sibling - null return looks for object reference?
I'm providing the following syntax in hopes someone could tell me why I get an object reference error on the second one. The first one works, using... -
Return a NULL dataset from a webservice ??!
When my webservice returns a null dataset my application crashes. null exception error. Has anyone experianced this ? and wondering if anyone has a... -
#19841 [Opn->Fbk]: RPC stored procedure with many columns return null value
ID: 19841 Updated by: sniper@php.net Reported By: tonyho at fairex dot com -Status: Open +Status: ... -
Server.GetLastError() return null
Try using the Application_Error() event in Global.asax. The context of the error will be available here. Your application is handling the error,... -
Tulan W. Hu #2
Re: CGI.pm form query sometime return null value
"YesBalala" <root@10.0.0.1> wrote in message ...
It never happened to me and it must be in your script.> I am using CGI.pm, and getting the parameters similiar to the
> followings,
>
> use CGI::Carp qw(fatalsToBrowser);
> use CGI qw(:all);
> :
> my $task = param('task');
> my $username= param('username');
Try:
my $query = new CGI;
if (param()) {
ensure_entered($query->param('username'));
} else {
#display your html form here
}
sub ensure_entered {
# make sure it is not empty
}
Tulan W. Hu Guest
-
YesBalala #3
Re: CGI.pm form query sometime return null value
Your script will only ensure it's not empty, but I can ensure that the
value is there. I have a java script to check for empty form before
submitting, and when empty parameter occur, hit the refresh icon to
repost the data and now the script can get it. So, the entered data is
there, being kept in the client's browser somewhere, just it does not
pass thru to the script for the first time. Refresh (means repost)
will work (so user don't need to re-enter). Anyone got further idea on
this?
Bosco.
--
On Thu, 12 Feb 2004 08:35:14 -0500, "Tulan W. Hu" <twhu@lucent.com>
wrote:
>It never happened to me and it must be in your script.
>Try:
>my $query = new CGI;
>if (param()) {
> ensure_entered($query->param('username'));
>} else {
> #display your html form here
>}
>sub ensure_entered {
># make sure it is not empty
>}
>
Bosco
--
Due to heavy spamming, I was forced to use an invalid reply address.
Do NOT reply to this posting via email directly.
YesBalala Guest



Reply With Quote

