citera:Skapades ursprungligen av: Adrian B:
Är det verkligen korrekt html att göra sådär? Alltså att sätta ett mailto: i action för en form?
Japp. Saxat ur HTML-specifikationen (version 3.2 för att vara exakt):
FORM
This is used to define an HTML form, and you can have more than one form in the same document. Both the start and end tags are required. For very simple forms, you can also use the ISINDEX element. Forms can contain a wide range of HTML markup including several kinds of form fields such as single and multi-line text fields, radio button groups, checkboxes, and menus.
action
This specifies a URL which is either used to post forms via email, e.g. action="mailto:[email protected]", or used to invoke a server-side forms handler via HTTP, e.g. action="http://www.acme.com/cgi-bin/register.pl".
method
When the action attribute specifies an HTTP server, the method attribute determines which HTTP method will be used to send the form´s contents to the server. It can be either GET or POST, and defaults to GET.
enctype
This determines the mechanism used to encode the form´s contents. It defaults to application/x-www-form-urlencoded.
Further details on handling forms are given in RFC 1867.
Eftersom ovanstående är en del av HTML-specen, version 3.2 (och förmodligen även tidigare versioner, har inte orkat kolla...) innebär det att alla webbläsare som stöder den aktuella HTML-versionen (dvs. alla...) hanterar e-postskickning av formulärresultat precis lika bra som den Explorer-version du hade provat med.
/Göran