Issue with CGI module and hidden fields

I

info

Hi There,

Has anyone seen this behaviour before? If I do this:

print $page->hidden(-name=>'DeleteNoteVal',
-value=>$data->[$i][0]) ;

the value of $data->[$i][0] is sometimes incorrect (not always! - only
the first hidden variable in a form in this particular case) whereas,
if I use 'straight' html:

print "<input type='hidden' name='DeleteNoteVal'
value='$data->[$i][0]' />" ;

everything's fine.

Any ideas?

Cheers

Steve
 
X

xhoster

Hi There,

Has anyone seen this behaviour before? If I do this:

print $page->hidden(-name=>'DeleteNoteVal',
-value=>$data->[$i][0]) ;

the value of $data->[$i][0] is sometimes incorrect

It is hard to figure out what exactly you mean. I suspect it has something
to do with "no_sticky" and "override" in the CGI module. Search the docs
for those terms.

Xho
 
G

Guest

Hi There,

Has anyone seen this behaviour before? If I do this:

print $page->hidden(-name=>'DeleteNoteVal',
-value=>$data->[$i][0]) ;

the value of $data->[$i][0] is sometimes incorrect (not always! - only
the first hidden variable in a form in this particular case) whereas,
if I use 'straight' html:

print "<input type='hidden' name='DeleteNoteVal'
value='$data->[$i][0]' />" ;

everything's fine.

Any ideas?

Cheers

Steve

I think I have an idea of what going on there, put I'd prefer to test on
a complete (but small) program. Can you demonstrate the problem in a
small, self-contained CGI/Perl program for me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top