I want to redirect this url localhost.com/page.php?user=editor
after submit a form which is form.php page and when submit it will redirect to mentioned url.
This url is not fixed it can be changed based on user such as user/editor/admin/superadmin
.
Note: I don't know exactly the name of this url parse url or query parameter. Please write me the name of this kind of url.