Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorPettyRider
    • CommentTimeSep 8th 2006 edited
     permalink
    If a form with method="post" is submitted with an input image:

    <input type="image" src="/i/submit.gif?phpMyAdmin=4594f30712f4fabaff6997416810f3f2" />
    should the $_POST array in PHP be empty? I switched a regular submit button to an image and errors started flying everywhere!?

    More specifically, the keys (form field NAME attributes) seem to be gone. Here's the code:

    foreach($_POST as $key => $qty)
    {
    // Determine $item_id
    list($forget, $item_id) = explode("_", $key);

    [ ... ]

    }

    And the error is on the explode function, as it thinks $key is undefined. Of course, everything is just peachy when a regular submit button is used. I'm at a loss.
    • CommentAuthordhayes
    • CommentTimeSep 9th 2006
     permalink
    hey petty.. what do you get when you die(print_r($_REQUEST)); above the loop?
  1.  permalink
    I didn't really have time to debug anything, and I've moved on from it for now. But I'll come back and try that later.
Add your comments
    Username Password
  • Format comments as (Help)