Validating forms using php social networking sites for dating

15 May

Beyond the perimeter is everything considered potential enemy territory which is...literally everything other than the literal code executed by the current request.All possible entrances and exits on the perimeter are guarded day and night by trigger happy sentries who prefer to shoot first and never ask questions.This is one of those compartmentalising by trust value issues I mentioned.In suggesting that users are untrusted, we imply that everything else is trusted. Users are just the most obvious untrusted source of input since they are known strangers over which we have no control.(Added: I think the problem is that even if the below $error messages occur, it will never show up, because the page is automatically redirected via the submit button.

We create and associate a set of “validation descriptors” with each element in the form.

isset($_POST["gender"])) /* Validation to ensure about if the checkbox is checked or not */ if(!

isset($_POST["terms"])) /* Validation about the right format of user email */ if(!

Connected to this perimeter are separately guarded (and very suspicious looking) “allies” including the Model/Database and Filesystem.

Nobody wants to shoot them but if they press their luck..