summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/shared/02/01170201.xhp
blob: 17a2dcf1ea03dfc9a9728f3122555409aba5fdb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="UTF-8"?>


<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->
	
<helpdocument version="1.0">
<meta>
<topic id="textshared0201170201xml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">General</title>
<filename>/text/shared/02/01170201.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
</history>
</meta>
<body>
<section id="general">
<bookmark xml-lang="en-US" branch="index" id="bm_id3152551"><bookmark_value>submitting forms</bookmark_value>
<bookmark_value>get method for form transmissions</bookmark_value>
<bookmark_value>post method for form transmissions</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3151100" xml-lang="en-US" level="1"><link href="text/shared/02/01170201.xhp" name="General">General</link></paragraph>
</section>
<section id="howtoget">
  <embed href="text/shared/00/00040501.xhp#form_properties_general"/>
</section>
<paragraph role="paragraph" id="par_id3153539" xml-lang="en-US">A form is a text document or spreadsheet with different form controls. If you create a form for a Web page, the user can enter data into it to send over the Internet. The data from the form controls of a form is transmitted to a server by specifying a URL and can be processed on the server.</paragraph>
<paragraph role="heading" id="hd_id3149283" xml-lang="en-US" level="2">Name</paragraph>
<paragraph role="paragraph" id="par_id3150789" xml-lang="en-US">Specifies a name for the form. This name is used to identify the form in the <link href="text/shared/02/01170600.xhp" name="Form Navigator">Form Navigator</link>.</paragraph>
<paragraph role="heading" id="hd_id3152425" xml-lang="en-US" level="2">URL</paragraph>
<paragraph role="paragraph" id="par_id3147226" xml-lang="en-US">Specifies the URL to which the data of the completed form is to be transmitted.</paragraph>
<paragraph role="heading" id="hd_id3154751" xml-lang="en-US" level="2">Frame</paragraph>
<paragraph role="paragraph" id="par_id3154823" xml-lang="en-US">Defines the target frame in which the loaded URL is to appear.</paragraph>
<embed href="text/shared/02/01170101.xhp#targetframe_options"/>
<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_PROP_SUBMIT_METHOD" id="bm_id3145313" localize="false"/>
<paragraph role="heading" id="hd_id3152551" xml-lang="en-US" level="2">Type of submission</paragraph>
<paragraph role="paragraph" id="par_id3155338" xml-lang="en-US"><ahelp hid="HID_PROP_SUBMIT_METHOD">Specifies the method to transfer the completed form information.</ahelp></paragraph>
<paragraph role="paragraph" id="par_id3145065" xml-lang="en-US">Using the "Get" method, the data of every control is transmitted as an environment variable. They are appended to the URL in the form "?Control1=Content1&amp;Control2=Content2&amp;..."; the character string is analyzed by a program on the recipient's server.</paragraph>
<paragraph role="paragraph" id="par_id3150443" xml-lang="en-US">Using the "Post" method, a document is created from the content of the form that is sent to the specified URL.</paragraph>
<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_PROP_SUBMIT_ENCODING" id="bm_id3154047" localize="false"/>
<paragraph role="heading" id="hd_id3147275" xml-lang="en-US" level="2">Submission encoding</paragraph>
<paragraph role="paragraph" id="par_id3159147" xml-lang="en-US"><ahelp hid="HID_PROP_SUBMIT_ENCODING">Specifies the type for encoding the data transfer.</ahelp></paragraph>
<paragraph role="heading" id="hd_id3155419" xml-lang="en-US" level="2">Data transfer of control information</paragraph>
<paragraph role="paragraph" id="par_id3153717" xml-lang="en-US">When sending a form, all controls available in $[officename] are taken into consideration. The name of the control and the corresponding value, if available, are transmitted.</paragraph>
<paragraph role="paragraph" id="par_id3153252" xml-lang="en-US">Which values are transmitted in each case depends on the respective control. For text fields, the visible entries are transmitted; for list boxes, the selected entries are transmitted; for check boxes and option fields, the associated reference values are transmitted if these fields were activated.</paragraph>
<paragraph role="paragraph" id="par_id3150984" xml-lang="en-US">How this information is transmitted depends on the selected transfer method (Get or Post) and the coding (URL or Multipart). If the Get method and URL encoding are selected, for example, value pairs in the form &lt;Name&gt;=&lt;Value&gt; are sent.</paragraph>
<paragraph role="paragraph" id="par_id3157909" xml-lang="en-US">In addition to the controls that are recognized in HTML, $[officename] offers other controls. It should be noted that, for fields with a specific numerical format, the visible values are not transmitted but rather fixed default formats. The following table shows how the data of the $[officename]-specific controls is transmitted:</paragraph>
<table id="tbl_id3156326">
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3153698" xml-lang="en-US">Control</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3153562" xml-lang="en-US">Value Pair</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3153823" xml-lang="en-US">Numeric field, currency field</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149734" xml-lang="en-US">A decimal separator is always displayed as a period.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3148563" xml-lang="en-US">Date field</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3146794" xml-lang="en-US">The date format is sent in a fixed format (MM-DD-YYYY), regardless of the user's local settings.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149670" xml-lang="en-US">Time field</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3153779" xml-lang="en-US">The time format is sent in a fixed format (HH:MM:SS), regardless of the user's local settings.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3153361" xml-lang="en-US">Pattern field</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3145419" xml-lang="en-US">The values of pattern fields are sent as text fields, that is, the value visible in the form is sent.</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150767" xml-lang="en-US">Table control</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3152933" xml-lang="en-US">From the table control, the individual columns are always transmitted. The name of the control, the name of the column, and the value of the column are sent. Using the Get method with URL encoding, the transmission is done in the form &lt;Name of the table control&gt;.&lt;Name of the column&gt;=&lt;Value&gt;, for example, with the value being dependent on the column.</paragraph>
</tablecell>
</tablerow>
</table>

</body>
</helpdocument>