I use the userid for validation like this:"index.php?ui=XX".
How can I hide the number or change it to another number?
I don't want to users see id number.
Thanks.
I use the userid for validation like this:"index.php?ui=XX".
How can I hide the number or change it to another number?
I don't want to users see id number.
Thanks.
Depends on why you don't want to show it.
If it's because you don't want the users to guess their sequential numbers then don't use userId in that case and instead generate UUID for each of the users (for example by using uniqid).
If you don't want the user to know their userId at all then, as long as you authenticate the user, you can utilise their login session and fetch the user info for them that way.
Pass the userid by using POST method, not GET. On other way you could learn some stuff about session handling. So you could store the userid in cookies and it will not appear in the url.
If you use Cookies, you can use the parameter on any location until you close the session.