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

[eluser]aidehua[/eluser]
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:

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

or sometimes even just

Code:
&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?
#2

[eluser]Tominator[/eluser]
In my opinion it's correct - I do the same Big Grin
#3

[eluser]dejitaru[/eluser]
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