I am trying to make a code where a client gets directed to a document which has identical name as the input of the client when the submit button is clicked. Target html file is created manually already.
The scenario is for example, if client enters “12345” in the input and clicks submit, the php script takes the client to a 12345.html document I already created. If client enters a different input, he gets redirected to a 404 page not found.
I have a very small knowledge. I only base on CSS and html.
This is the little code my head could put together.
[php]“header(“Location: .$_POST[‘inputted_string_without_space’].+.html”);”;[/php]
Any help will be highly appreciated