I have a form on page www.mysite.com/myPage.php that mosttimes works but occasionally sends the form to the index page.
This is because I-m using the html 4.x style < action "">.
So what is the best generic option (not specifying the page url) to keep the form to the same page? Html would be cleaner than php, no?
The following question is 3 years old and has no accepted answer (Forms with action="")
asked Jan 8, 2014 at 11:08
EnglishAdam
1,3902 gold badges21 silver badges42 bronze badges
lang-html
action=""attribute leaves it down to the browser implementation. Defining it as the current page is better (See W3 Bug Tracker)