Re: [PHP] Check a string does not contain invalid characters

2007-03-25 Thread Jochem Maas
John Comerford wrote: Hi Folks, I am new to php. I want to accept a character string which I will use as a unique user id. I want to check the string to ensure the user has not typed characters that I consider to be invalid as part of a user id. I was thinking of doing something along

Re: [PHP] Check a string does not contain invalid characters

2007-03-23 Thread Richard Lynch
On Wed, March 21, 2007 11:15 pm, John Comerford wrote: I want to accept a character string which I will use as a unique user id. I want to check the string to ensure the user has not typed characters that I consider to be invalid as part of a user id. I was thinking of doing something along

[PHP] Check a string does not contain invalid characters

2007-03-21 Thread John Comerford
Hi Folks, I am new to php. I want to accept a character string which I will use as a unique user id. I want to check the string to ensure the user has not typed characters that I consider to be invalid as part of a user id. I was thinking of doing something along the lines of: if

Re: [PHP] Check a string does not contain invalid characters

2007-03-21 Thread Jim Lucas
John Comerford wrote: Hi Folks, I am new to php. I want to accept a character string which I will use as a unique user id. I want to check the string to ensure the user has not typed characters that I consider to be invalid as part of a user id. I was thinking of doing something along the