action of a form normally refers to the script which runs after submittting. I saw a code with form action="/"
and I am unable to find to where it goes. Someone please explain me.
Asked
Active
Viewed 3,380 times
2

Madusanka
- 2,968
- 5
- 30
- 41
-
It sends the form data to the index page or the home page of that site where the form is. Here, [Try it yourself](http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type) – Anjan Baradwaj Sep 26 '13 at 08:02
4 Answers
6
It goes to the index of the base dir.

Joran Den Houting
- 3,149
- 3
- 21
- 51
-
-
If someone did set the baseURL indeed. Changed my answer just for you, thanks for the addition :)( – Joran Den Houting Sep 26 '13 at 07:42
1
It sends the form to the index page of the site. (normally index.php, but often index.html, or main.html)

Zack Newsham
- 2,810
- 1
- 23
- 43
0
See it as an directory. The / just means that your application will search in the very first directory for an index.php file.

MichaelP
- 181
- 5
- 22