Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (empty($_POST["postinumero"])) {
- $postinumeroerr = "Täytä tiedot";
- } else {
- $postinumero = test_input($_POST["postinumero"]);
- if (!preg_match('/[0-9]{5,5}/',$postinumero))
- {
- $postinumeroerr = "Vain numeroita ja 5 merkkiä pitkä";
- }
- }
- if (empty($_POST["ikä"])) {
- $ikäerr = "Täytä tiedot";
- } else {
- $ikä = test_input($_POST["ikä"]);
- if (!preg_match('/^[1-9][0-9]?$|^100$/',$ikä))
- {
- $ikäerr = "Ikä täytyy olla 1-100";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement