The validation docs has examples on POST data forms which work fine, but how would someone do a more simple validation?
For example validate a specific EE URL like {segment_2} or another EE tag used in the template which needs to be validated manually without a POST or GET request?
I can obviously fake the $_POST request, but putting more simple examples would also be useful in the documentation.
I think that is a case most framework and people will use. Pass data on the URL but make sure someone does not alter it and tamper with the data which needs to be validated before passing the segment to the template.
No add-on. I’m just trying to validate a specific name passed on the URL with PHP. I managed to do this quite easily with PHP. For some reason the same regex does not work with the EE regex validator but works fine with raw PHP.
The build in data validator with EE works with all the prebuild fields but not with the regex one.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.