I'm passing an ASP page to PHP and found a form where the action attribute had the following value: <form action="./">
. Does this action value work as a <form action="#">
? In other words, does it point to the same page?
I'm passing an ASP page to PHP and found a form where the action attribute had the following value: <form action="./">
. Does this action value work as a <form action="#">
? In other words, does it point to the same page?
Negative, when it sends to "./"
will fall into the root of the current folder. Then in the case, who enters the scene and receives the parameters of the form will be the index of this folder.
Unless, of course, the page of the form in question is already the index, then back to it.
An action containing "#" is referring to an anchor present on the page itself. As in:
<a href="#titulo">Link na pagina</a>
...
<a name="titulo"></a>
When using an unnamed anchor as in "#" most browsers by default go back to the top of the page.
When you use in href the value "/" is pointing to the index page (index.html, index.php, index.aspx, or as configured on the server).When you use a "./" href it is pointing to the index of the current directory.
When you use href "? any_ thing", you are referring to the current page, updating it with some parameter via GET.
Without scrolling, it means going to the current directory.
That is, if the directory of x.asp
is c:\pages\files\x.asp
, it will go to c:\pages\files