473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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.
Jul 19 '05 #1
1 3392
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" <tw**@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.
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
Form FrmRestock's recordsource is QryFrmRestock. The TransactionDate field's criteria is set ats: Forms!FrmRestock!LastXDays. LastXDays on the form is a combobox where the selections are 30, 60...
0
by: Aravind | last post by:
Hi folks. I have a query, qryHistory, which has the following field: DaysOverdue: IIf(<Date(),DateDiff("d",,Nz(,Date())),0) I also have a form (continuos), frmHistory, which is based on...
2
by: Seth Delaney | last post by:
I have a form with multiple unbound text boxes which serves as a "search form". I can enter my search parameters in the various boxes as needed and click okay. My records are then filtered to...
5
by: tdmailbox | last post by:
I have a form with a child form. In the child form there is a list of names that can grow quite large. On the parent form I want to display the first name from the child form. I set up a test...
2
by: justplain.kzn | last post by:
Hi, I have a table with dynamic html that contains drop down select lists and readonly text boxes. Dynamic calculations are done on change of a value in one of the drop down select lists. ...
1
by: runway27 | last post by:
i have 3 pages page1.php page2.php and page3.php in page1.php user fills a registration form in page2.php the user can review what they have entered and make any changes and page3.php...
61
by: bonneylake | last post by:
Hey Everyone, Well after asking many questions i have this almost working. This is how it works. Basically i fill in my customer number field an that populates my drop down box. Once i select...
10
beacon
by: beacon | last post by:
Hi everybody, This is probably going to sound unorthodox, but I have to log records that are deleted...I know, go figure. Anyway, I have a form with a (continuous) subform, and on the subform I...
45
by: dizzydangler | last post by:
Hi, I'm new to access (2007, running on XP), but I've gotten some great help from this site on my project so far. However, the more I know, the more complex the problems seem to become.... I'm...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.