From: <no...@so...> - 2002-12-05 08:01:24
|
Patches item #648850, was opened at 2002-12-05 00:01 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=308956&aid=648850&group_id=8956 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Leonard Chan (wotg) Assigned to: Nobody/Anonymous (nobody) Summary: Survey Reponse Validation Initial Comment: Hi. Here is some code that will check survey responses for valid input. I.e. numerics are tested to be numbers, dates as dates, and the number of checkboxes selected is compared to min (aka length) and max (aka precise). FWIW, the code was originally based on the "check required" function. I regret that I can't provide a proper diff, I'm technically inept in that regard =), and besides, it would be cluttered with other customizations that are irrelevant to phpESP anyway. The attached text file has 2 functions that can be placed anywhere, I suggest espresponse.inc. And 3 lines to be added to handler.php. Hope this is useful. Regards! Leonard. http://www.lc.yi.org ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=308956&aid=648850&group_id=8956 |