logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Boston.pm] Empty radio and checkboxes not passed to perl scr ipt: msg#00102

Subject: Re: [Boston.pm] Empty radio and checkboxes not passed to perl scr ipt
Alex Brelsfoard wrote:

> Picture a web form that is some sort of a survey.  When that survey is
> submit the perl script writes out the answers onto a file.  That file is
> tab delimited.
> Now picture the first person going to the form and filling everything out,
> including all checkboxes and radio buttons.
> Now the second person comes along and chooses not to fill in a radio
> button.  When that form's information is sent to the script it is missing
> that radio buttons field name and therefore misses that tab, and all the
> results get skewed.  Information becomes invalid, people get unhappy,
> heads are lost, cats and dogs start getting married, and all the worlds
> wine turns into bags of turnips.
> In other words, not terribly fun.

Sounds hilarious to me.  And it sounds like just the sort of pain that 
you would deserve if you didn't sanity-check your input.

-- 
David Cantrell | Hero of the Information Age

   Vegetables are what food eats


<Prev in Thread] Current Thread [Next in Thread>