W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > April 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: Fri, 29 Apr 2011 06:51:46 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QFhYI-00076i-Qj@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12561

--- Comment #6 from brunoais <brunoaiss@gmail.com> 2011-04-29 06:51:44 UTC ---
(In reply to comment #5)
> Okay, wait a sec.  <form action=""> is the same as just <form>.  So if you want
> to submit to "", just omit the action attribute entirely.  This will in fact
> ignore <base>, but that's usually not an issue.  I now assume that the reason
> action="" isn't allowed is because it's redundant, although I'm not sure.
Redundant or not, submitting to the page that has the form, nowadays, makes a
lot of sense. The page with the form may be php, asp or any other server side
script and it will handle the query and could even show the errors in a better
way.


> Actually, this will strip any existing query string, so it's not an acceptable
> solution at all.
...
> No, it cannot.  Browsers' behavior here is well-established and cannot be
> changed without really, really, really good reason.
True... forget that one, then.

The empty string is the way to go, then!!!

-- 
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 Friday, 29 April 2011 06:51:48 UTC

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