Issue with CGI module and hidden fields

Discussion in 'Perl Misc' started by info@misterdoo.co.uk, Jan 15, 2007.

  1. 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
     
    , Jan 15, 2007
    #1
    1. Advertising

  2. Guest

    wrote:
    > 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

    --
    -------------------- http://NewsReader.Com/ --------------------
    Usenet Newsgroup Service $9.95/Month 30GB
     
    , Jan 15, 2007
    #2
    1. Advertising

  3. On 01/15/2007 07:40 AM, wrote:
    > 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?


    --
    Windows Vista and your freedom in conflict:
    http://www.securityfocus.com/columnists/420/2
     
    Mumia W. (NOSPAM), Jan 15, 2007
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick
    Replies:
    3
    Views:
    8,317
    Alexey Smirnov
    Apr 13, 2010
  2. Patrick Gundlach
    Replies:
    2
    Views:
    172
    Patrick Gundlach
    Dec 18, 2004
  3. Replies:
    0
    Views:
    300
  4. wana

    CGI.pm sticky hidden fields: why?

    wana, Sep 29, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    134
    Alan J. Flavell
    Oct 3, 2004
  5. SolarCanine
    Replies:
    2
    Views:
    305
    SolarCanine
    Sep 20, 2005
Loading...

Share This Page