Your pattern checked only first character. Change to:
(!preg_match("/^[0-9a-zA-Z ]+$/", $name3))
Aeonix commented: Yea! +4
Stefce commented: How much sub-arrays i can have ? +2
diafol commented: This needs to be a sticky! Heh heh. +14
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
rproffitt commented: Well said. +11
diafol commented: Good advice +14
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
cereal commented: Hi, why not `filter_input()` then? https://php.net/filter-input +14
AndrisP 193 Posting Pro in Training
diafol commented: Good stuff on RLIKE :) +15
cereal commented: I misread OP request and focused on the first bit of code... correct solution +1 +13
ravi142 commented: @AndrisP : Thank You. +1
catastrophe2 commented: o its supposed be SWAP, but it still runs either way, just that i need to fix the problem i mentioned in my first post +1
sigitas.darguzas commented: Thanks :) +0
sigitas.darguzas commented: okey but dont work. i need autopatic fill ip in konkursas.txt +0