you always need to put a semicolon ; at the end of an echo statement. i.e echo $_POST["inputname"];
and always remember to check for $_POST before the echo statement i.e.
Why did you open the file directly on the browser? If you open a file using the browser, then that file is not interpreted by the server, hence it will not show what you expect.
If you want to access it directly, then open http://localhost/index1.php, which should be an empty page.
On the other hand, if that page is shown when submitting the form, then that may be a configuration problem with your server (it may not even be running).