$_POST["name"]
can be only used in the page that is called upon submitting the form (
welcome.php in your case).
If a page is called without parameters, the
PHP: $_POST - Manual[
^] array is always empty.
If you need access to PHP parameters within the page that contains the form, you have to use a single file for it (that is: the form
action
attribute points to it's own URL). Then check with
isset()
if it has been called with or without parameters (by submitting or by opening the URL) and act accordingly.