I simply meant that you should research using cURL to submit the values yourself - using hidden/readonly input form fields can easily be edited by the user before they are submitted, thus bypassing any validation you may have already done.
"Validating" data doesn't mean a whole lot in the general sense - you really have to define it on a case-by-case means depending on your application and what you consider "invalid" data.