I am creating a web application in PHP. I need a task to be done that is I want to take an input from a user in a search form and the term user have given must be added to address for a specific task.
For example: User is given an input such as obama now I want it should be added to address bar URL such as www.somedomain.com/something/obama.
<html>
<head>
<title>Test Page</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<form class="form-wrapper" method="POST"
action="http://www.somedomainname.com/">
<input type="text" id="search" placeholder="Search for..." required >
<input class="form-control" type="submit" value="go" id="submit">
</form>
</body>
</html>
Now I want that what user give as input then it must redirect to www.somedomainname.com/searchterm.