[Bug 12561] Add the @action in the <form> so that there is a way to submit to the same page

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12561

--- Comment #21 from brunoais <brunoaiss@gmail.com> 2011-07-20 08:32:51 UTC ---
(In reply to comment #20)
> (In reply to comment #17)
> > 
> > I want a form to have action="some-url", but I want a single button to target
> > the current URL, and so want to set formaction="". This is not allowed under
> > the current spec.
> 
> Just use formaction="?" instead.

That would be an option, if it was. With the current spec, if the program uses
the ? to identify the page where to redirect to (SMF style, where everything
passes through index.php) that is no longer an option.
I'm requested to make (still simple but are getting more and more complex)
websites that includes forms of this kind. So, an url to the form like:
/file?path=path-to-myself
if I use "?" I lose the get var.
if I use "?path=path-to-myself", if the path changes, the path Get var stops
working.
How to solve this?
- Give special meaning to "?" (alone) which means to submit to the same page ->
might have some implications.
- Give special meaning to "" which means to submit to the same page -> already
many browsers consider this "submit to the same url".

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 20 July 2011 08:32:55 UTC