I have a form with a single input box. When the user inputs the data and presses enter - i need the page to be redirected to currentpage.com/userinput/ where currentpage.com is the page we are on and userinput is the data that was typed into the text box.

I know how to achieve this with \_GET or \_POST but using them is not an option. Can some one please offer a solution?

```
echo "<form action=\"\" method =\"get\">";
echo "<input id=\"input\" type=\"text\" name=\"page\" placeholder=\"Input your data..\">";
echo "</form>";

```

This is what i've got so far