Welcome Guest, Not a member yet? Register   Sign In
Leaving form action attribute empty <form action="" method="post">

Often I want a form that submits to the same URI.

Because I'm <strike>lazy</strike> concerned to work as efficiently as possible, I am in the habit of doing this:

&lt;form action="" method="post"&gt;

or sometimes even just

&lt;form method="post"&gt;

It's always worked fine for me. But sometimes I feel a bit guilty about doing it.

Is it wrong? If so, how wrong? More to the point, what could go wrong?

In my opinion it's correct - I do the same Big Grin

I feel guilty too, but I use it that way. I can't think in something that can be wrong using this.

Theme © iAndrew 2016 - Forum software by © MyBB