This topic is locked

'&' in Username

2/26/2009 11:01:57 AM
PHPRunner General questions
C
colin bennett author

I have set up "Company" field as username.

Problem is that some Companies have an ampersand "&" in their name eg. "Joe Smith & Sons Ltd.".

While the registration and login works with the "&", I'm not able to dynamically assign them to a group.

Should I:

a. Change the "&" to "and"

b. use something like "FILTER_CALLBACK" function to translate the "&" to "and" after login?

Tnx

Sergey Kornilov admin 2/26/2009

If you define Group Permissionsusing Company field replacing & with "and" in runtime won't help.
What happens when you assign permissions dynamically?

C
colin bennett author 2/26/2009

If you define Group Permissionsusing Company field replacing & with "and" in runtime won't help.

What happens when you assign permissions dynamically?



for Companies without the "&" it assigns them to the group just fine. For Companies WITH the "&" it does nothing. My guess is that MSQL doesn't like the "&" in the name.

Sergey Kornilov admin 2/26/2009

Post your project to Demo Account and open ticket at http://support.xlinesoft.com sending your account URL and steps to reproduce the issue. I'll suggest a workaround for you.