W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2011

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 20 Jul 2011 08:32:54 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QjSD8-0002nv-CZ@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:13 UTC