On Fri, 2005-05-27 at 11:04 -0400, Chris Devers wrote:
> That or just don't allow page authors to put any old random crap into
> the form like this :-)

I'm sorry, but if Chris is correct and the authors write the survey
forms themselves from scratch and you try to parse the results, then
there's your problem. Kill them all and start over, not much else to be
done!
 >:-}

Seriously though. That would, if true, be a _very_ bad plan. It would
probably be less effort to code (or adapt) a survey form generator which
your clients walk through then try to handle random form submissions
from various authors. <shudder> Then you would have control of the
contents. If it's too late for that, then you add a user requirement.
_THEY_ must include a hidden field, that you name, that lists all the
expected fields. Even better, lists the fields and types. You only
handle submissions with that field present and properly formatted, and
only the fields listed therein. Period.

Otherwise you will need to do some sort of HTML parsing of the form
itself to find out what the authors have decided to place in there, and
hope it's parseably well formatted.

Good luck!

-- 
Sean Quinlan <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

 
_______________________________________________
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to