Can you be more specific with your question? Do you have any code to show us where the problem is? If you are talking about validation of data, you can simply use the various methods for making sure variables have values, that they are numbers if they are suppose to be numbers etc.
Without any clarification and code to show us what you are trying to do, our hands are a bit tied. Thanks for helping us help you.