I have a form that allows users to enter in one or more entries into my
db.
If there exists entries in the database a small table is suppose to be
display the contents of a hash at the top of the form that would enable
the user to check a box and remove entry.
The problem that I'm having is when the user wishes to enter another
entry... The initial form data is correctly stored however the table,
which should show this new entry, is not displayed (it is if I click on
a link or hit refresh)
To handle the toggling I simply do:
[$ if scalar(keys %HASH) > 0 $]
table stuff....
[$ endif $]
The very odd thing is it appears that scalar(keys %HASH) remains the
same and won't update unless I click on a link or hit refresh (even if I
do an 'undef %HASH' prior to loading it with data)...
--
__________________________________________________________
Mr. Erich L. Markert emarkert@pace.edu
Computer Learning Center TEL (914)422-4328
Pace University
1 Martine Ave
White Plains, New York 10606-1932
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
db.
If there exists entries in the database a small table is suppose to be
display the contents of a hash at the top of the form that would enable
the user to check a box and remove entry.
The problem that I'm having is when the user wishes to enter another
entry... The initial form data is correctly stored however the table,
which should show this new entry, is not displayed (it is if I click on
a link or hit refresh)
To handle the toggling I simply do:
[$ if scalar(keys %HASH) > 0 $]
table stuff....
[$ endif $]
The very odd thing is it appears that scalar(keys %HASH) remains the
same and won't update unless I click on a link or hit refresh (even if I
do an 'undef %HASH' prior to loading it with data)...
--
__________________________________________________________
Mr. Erich L. Markert emarkert@pace.edu
Computer Learning Center TEL (914)422-4328
Pace University
1 Martine Ave
White Plains, New York 10606-1932
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer