question mark in url params?
Let me explain
# I want this
example.com/user/mark
# Instead of
example.com/user.php?name=mark
depends on your web server
You mean pretty URL’s. You can use the .htaccess file and regex.
To get that, you must use a router. Its a piece of code that lets you define urls and which code will be executed when the router match the requested URL.
Hi both URL is different means. example.com/user/mark Here is mark is inside user directory Root example.com |_ user |___mark Or example.com/user.php? name=mark That means go to user.php And send data with GET method. In this URL simply mark data store in name variable and send to the user.php using GET method.
Обсуждают сегодня