you should never trust data coming in from a webform. for example, if you are collecting a phone number and the data is in $phoneNumber..
do something like, $phoneNumber =~ s/.*(\d{3}-\d{3}-\d{4}).*/ or &handleError() if ( $phoneNumber !~ /^(\d{3}-\d{3}-\d{4})$/ );
but, CGI::FormBuilder provides some automatic mechanism for this. it has in built in data types, like phone number. or you can enter custom regular expressions for ones that aren't built in.
At 04:38 PM 6/27/2003 +0200, anthony wrote:
Hi.
I have an idea, if someone creates an external program to overload my database, How do i prevent that, if all the fields are correct?
Anthony
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]