Jump to content

[SOLVED] (!ereg("^[A-za-z0-0-9]+$",$ help needed


NSW42

Recommended Posts

Heya,

      im all new to php mysql but getting there, im stuck with a issue on !reg, what mine does with this (!ereg("^[A-za-z0-0-9]+$",$_POST[nickname])) it checks the data base ok for all nick names, but what im having trouble with is, i have assic nicknames, so the actual name gets inserted into the db like this

Pεpşı™ but if someone joins it tells them to Enter a Valid nickname with letters and numbers only, i know its saying the correct thing as the (!ereg("^[A-za-z0-0-9] is for plain names only, if anyone can help out with a ireg that allows the assic would be much appreciated..

 

 

Thanks to anyone that can help

Link to comment
https://forums.phpfreaks.com/topic/44445-solved-erega-za-z0-0-9-help-needed/
Share on other sites

everything is fine, they can change there nickname once there in chat to assic, its just when they joinup, it just says incorrect valid, if i take out the checke and ereg they can joinup with any nickname, but then that presents a problem with it not checking the db for nickname being available or in use.

everything is fine, they can change there nickname once there in chat to assic, its just when they joinup, it just says incorrect valid, if i take out the checke and ereg they can joinup with any nickname, but then that presents a problem with it not checking the db for nickname being available or in use.

on registeration it tells u if nickname is taken, but if its available it just comes up with use valid nickname with letters and numbers only.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.