<we:form>
Since version: - | Requires endtag: yes
Description
Attributes
id
Default value: - | since version: 2.2.0.0 | required: no
Set this attribute to the ID of the target webEdition document to which the form data is sent. Setting this attribute to "self" or not setting it at all will cause the form data to be sent to the current webEdition document.
name
Default value: - | since version: - | required: no
method
Default value: - | since version: - | required: no
Set this attribute to the HTTP transfer method. Valid parameters are "GET" and "POST".
Allowed values:
- get
- post
target
Default value: - | since version: - | required: no
Set this attribute to the name of the window or frame in which the link should open.
Allowed values:
- _top
- _parent
- _self
- _blank
Syntax
<we:form [id="attribute"] [name="attribute"] [method="get|post"] [target="_top|_parent|_self|_blank"]> ... </we:form>
Examples
Example #1 - Login form
<we:ifNotRegisteredUser> <we:form id="self" method="post" xml="true"> <we:ifLoginFailed> <p> <strong>The login has failed. Please try again.</strong> </p> </we:ifLoginFailed> <p> <label for="Username">User name:</label><br /> <we:sessionField name="Username" id="Username" type="textinput" xml="true"/> </p> <p> <label for="Password">Password:</label><br /> <we:sessionField name="Password" id="Password" type="password" xml="true" /> </p> <p> <input type="submit" value="Login" /> </p> </we:form> </we:ifNotRegisteredUser>