maykelsoft wrote:opps user with more than 10 characters still not added...
USER NOT ADDED - Please go back and look at the data you entered
user id must be between 2 and 10 characters long
full name and password must be at least 2 characters long
thanks!
guys sorry for the trouble. it's really working now...
1. ALTER TABLE `vicidial_users` CHANGE `user_id` `user_id` INT( 20 );
2. echo "<tr bgcolor=#B6D3FC><td align=right>User Number: </td><td align=left><input type=text name=user id=user size=20
maxlength=20> <input type=button name=auto_user value="AUTO-GENERATE" onClick="user_auto()"> $NWB#vicidial_users-user$NWE</td></tr>\n";
3. echo "<tr bgcolor=#B6D3FC><td align=right>User Number: </td><td align=left><input type=text name=user id=user size=20 maxl
ength=20> <input type=button name=auto_user value="AUTO-GENERATE" onClick="user_auto()"> $NWB#vicidial_users-user$NWE</td></tr>\n";
4. if ( (strlen($user) < 2) or (strlen($pass) < 2) or (strlen($full_name) < 2) or
( (strlen($user) > 20) and (!ereg('AUTOGENERA',$user)) ) )
i am confused with item number 4 as I am not sure if I really need to change it from 10 to 20. However, everything is working now and I can add more than 10 characters on user number without an error.
thanks!!!