[UPHPU] class breakage

Ray Hunter bigdog at venticon.com
Tue Oct 10 11:41:50 MDT 2006


Steve Dibb wrote:
> jtaber wrote:
>> As a user, (and I try to place myself that way) I've always found that
>> a validation process works best - maybe an ajax validation right in
>> the entry form with an alert box that tells the user what is wrong. 
>> The wrong data should never reach the functions. 
> Well this isn't for the user.  This is for the developer.
> 
> So if the code passes in $foo->($string, $int);
> 
> and is expecting a string instead of an integer on the second variable,
> how should it react?

either way i think you need to trigger an error and then allow the
developer to recover the process perhaps by allowing them to access the
form again with an error message above the form.

--
ray


More information about the UPHPU mailing list