I am trying to design a registration form using HTML, CSS, MySQL , JS and PHP.
All related files are inside one folder : Registration Form.
In my HTML form page, when I specify the form with its absolute path:
<form name="regform" action="http://localhost/Registration Form/register.php " method="post" target="_blank" onsubmit = 'return validate() '/>
the PHP file opens and works as I expect it to.
But when I change the path to relative, as:
<form name="regform" action="http://./register.php" method="post" target="_blank" onsubmit = 'return validate() '/>
the browser shows "about:blank".
I want to use relative path as far as possible, to make this "independent of storage place" in a way. Could you help me out?
PS: I am able to use relative path for including stylesheets and JS files.
Moreover, I am able to "include" other PHP files using relative path, in the above mentioned "register.php" file!
I am working on an Ubuntu Linux system and the browser is Firefox.