473,511 Members | 14,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form/action default

Hello,

does anybody no, which the default action is (if no action attribute value
is assigned).

I didn't find anything in the TR yet.

Best Regards,

Oliver
--
Leben ist mehr als schneller - weiter - höher
<http://www.nak-nrw.de/p_6_4.html>
Aug 21 '06 #1
10 11585
Rik
Oliver Block wrote:
Hello,

does anybody no, which the default action is (if no action attribute
value is assigned).

I didn't find anything in the TR yet.
The same page most of the time, W3C states:
action = uri [CT]
This attribute specifies a form processing agent. User agent behavior
for a value other than an HTTP URI is undefined.

So, default browser behaviour, which is mostly the same page AFAIK, but can
differ between user agents. Conclusion is you should always set the action
attribute.

Grtz,
--
Rik Wasmus
Aug 21 '06 #2
Rik wrote:
So, default browser behaviour, which is mostly the same page AFAIK, but
can differ between user agents. Conclusion is you should always set the
action attribute.
So action is by default 'base' I assume!?

Thank you.

Best Regards,

Oliver
--
Leben ist mehr als schneller - weiter - höher
<http://www.nak-nrw.de/p_6_4.html>
Aug 21 '06 #3
Oliver Block wrote:
Rik wrote:
>So, default browser behaviour, which is mostly the same page AFAIK, but
can differ between user agents. Conclusion is you should always set the
action attribute.

So action is by default 'base' I assume!?
No idea what you mean by "base". As Rik said, there is no standard
default, and some but not necessarily all browsers use the current page
as the default.
Aug 21 '06 #4
Oliver Block wrote:
does anybody no, which the default action is (if no action attribute value
is assigned).
In that case the document is non-conformant and the default is handled
by browser error handling routines. The action attribute is
non-optional.

Aug 21 '06 #5

Oliver Block wrote:
does anybody no, which the default action is (if no action attribute value
is assigned).
Do you mean action or method?

For method, the default is GET (rather than POST)

For action (e.g. /CGI-BIN/process.cgi) then there is no default,
because a default would be almost meaningless. There are cases when a
<formis used purely with client-side DHTML and so an action isn't
particularly useful in that case, but these are rare. However the spec
still requires one, so set it to "#" if you really can't think of
anything else.

Aug 21 '06 #6
Andy Dingley wrote:
There are cases when a <formis used purely with client-side DHTML
Why use a form at all then? The spec don't require that input elements
be contained in such an element.

Aug 21 '06 #7
Harlan Messinger wrote:
Oliver Block wrote:
>So action is by default 'base' I assume!?

No idea what you mean by "base". As Rik said, there is no standard
default, and some but not necessarily all browsers use the current page
as the default.
The base URI.

<http://www.w3.org/TR/html401/struct/links.html#h-12.4.1>

oliver

--
Leben ist mehr als schneller - weiter - höher
<http://www.nak-nrw.de/p_6_4.html>
Aug 21 '06 #8
David Dorward wrote:
Oliver Block wrote:
>does anybody no, which the default action is (if no action attribute
value is assigned).

In that case the document is non-conformant and the default is handled
by browser error handling routines. The action attribute is
non-optional.
That's right. I didn't consider that.

action %URI; #REQUIRED -- server-side form handler --

Oliver

--
Leben ist mehr als schneller - weiter - höher
<http://www.nak-nrw.de/p_6_4.html>
Aug 21 '06 #9


David Dorward wrote:
Andy Dingley wrote:
>>There are cases when a <formis used purely with client-side DHTML


Why use a form at all then? The spec don't require that input elements
be contained in such an element.
One reason is (or maybe was) Netscape 4 which does not render form
controls if they are not in form element.
And another reason is that scripting form controls contained in a form
element with stuff like this.form.elements or this.form.otherControlName
is flexible and works in more browsers than having to id any control and
use getElementById.
I only mention these as possible reasons to choose a form element
container, I am in no way suggesting that anyone should or has to.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 21 '06 #10
Oliver Block:
does anybody no, which the default action is (if no action attribute value
is assigned).

I didn't find anything in the TR yet.
All you'd find there is that the value of the action attr. is a URL
('URI' in the spec, 'URI-reference' in RFC3986, call it what you like).

A string of length zero where a URL is expected is an empty relative
reference. RFC3986 is less explicit than its predecessor, but in
theory an empty FORM action is a reference to the base URL. In
practice, I don't think you'll find a browser that interprets it this
way, other than in the (usual) case where the base URL happens to have
been established from the Request-URI.

--
Jock

Aug 21 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
6105
by: Pete..... | last post by:
Hi all. I have made a webpage where there is a webform where people can fill in their personel information: The code is below: I want to transfer the data to a postgreSQL database ( I have...
2
4782
by: jason | last post by:
Is it possible to POST a FORM to multiple URLS at the same time....OR.... Is the only workaround for this scenario to use response.redirect in the called ASP page and do a multi processing? -...
2
3727
by: Mark Watkins | last post by:
suppose I have the following: -----------BEGIN page1.asp---------- <form method="post" action="page2.asp"> <select name="someData" size="1" class="smallbutton"> <option...
8
5720
by: whtevr | last post by:
Consider this HTML on an ASP page called default.asp in a virtual directory: <FORM name="Flogin" id="Flogin" action="" method=post> </FORM> Do I HAVE to put the literal "default.asp" into the...
2
2678
by: Laurent Bertin | last post by:
Hi i got a strange problem but it's true i don't make thing like anyone... First Config: + IIS5.0 SP2 (yes i know...) WebSite Security Root : Digest Authentication, NT Authenticated SubFolders...
17
1624
by: Justin | last post by:
How do I post a form to a specified url using an ASP.NET with a code behind? With traditional ASP I used to be able to simply use: action="https://www.domain.com/process.asp" Thanks, Justin.
10
14024
by: Steve Last | last post by:
Hi all, I’m using IIS6 for our college Intranet and I’m having trouble using Request.Form. Here is my code: <% If Request.QueryString("action") = "show" Then Response.Write "title: " &...
12
6919
by: Daniel Klein | last post by:
I'm pretty new at php and web stuff so please be gentle with me. I'm trying to get a form to submit when the user presses the Enter key. I do not want to use javascript. I've googled this to...
6
5066
by: Stanimir Stamenkov | last post by:
I have a form without a submit button like: <form name="form1" action="" onsubmit="alert('submit ' + this.name);"> <div> <label>Field 1: <input type="text" name="field1"...
1
3302
by: chromis | last post by:
Hi, I'm having trouble fully implementing the edit section of a contact admin system, so far I have written the following: - Bean (Contact.cfc) - Data Access object (ContactDAO.cfc) - Gateway...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.