in reply to Re^3: Whats wrong with this code.
in thread Whats wrong with this code.

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: Whats wrong with this code.
by eric256 (Parson) on Feb 20, 2007 at 20:17 UTC

    When you don't tell us what "simply 'doesn't work'" means of course we have no idea what that means. If I said "I went out to my car today and it doesn't work!" and didn't give you any information on past issues, known problems, or anything you would have a hard time telling me why it doesn't work since it could be anything at all. ;) Until you figure this out, use a print statement to generate the HTML. Use the HTML generated by CGI as your base and modify it to be closer to your working example until you find the part of the HTML that is causing the error. That is what debugging normaly requires, slow methodical changes until you find that one change that makes the program start/stop working correctly. At that point you'll know what false assumption or mistake you or the computer made and hopefully know how to fix it, or someone else will.


    ___________
    Eric Hodges
Re^5: Whats wrong with this code.
by xorl (Deacon) on Feb 20, 2007 at 19:01 UTC
    Have the next cgi print out what values were passed to it and exit. See if something is missing or is being passed with a different name.

    Personally, I don't like CGI.pm. What's wrong with just crafting the HTML in a print statement?