Login   Register  
PHP Classes
elePHPant
Icontem

File: formCustomisedDataConfig.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Herman Veluwenkamp  >  xmlForm  >  formCustomisedDataConfig.xml  >  Download  
File: formCustomisedDataConfig.xml
Role: ???
Content type: text/plain
Description: XML data configuration for Customised Example
Class: xmlForm
Generates a form in HTML.
Author: By
Last change:
Date: 12 years ago
Size: 1,995 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8"?>

<!--

THIS FILE DESCRIBES THE DATA TO BE EDITED
THE TAG NAMES SHOULD BE FAIRLY SELF EXPLANATORY 

FORM TYPES SUPPORTED:
  TEXT:        Text input field
  TEXTAREA:    Textarea input field
  SELECT:      Selection list
  MULTISELECT: Multiple selection list
  CHECKBOX:    Checkboxes
  RADIO:       Radio buttons

-->

<form-config>
  <var name="username" type="text"> <!-- NAME FOR FORM FIELD AND INPUT TYPE -->
    <description>User Name</description>
    <html-display-option name="class" value="formText"/>
    <html-display-option name="size" value="20"/>
    <html-display-option name="maxlength" value="25"/>
    <validation-regexp>/^\w+$/</validation-regexp>
    <validation-message>No spaces allowed.</validation-message>
  </var>
  
  <var name="firstName" type="text">
    <description>First Name</description>
    <html-display-option name="class" value="formText"/>
    <html-display-option name="size" value="20"/>
    <html-display-option name="maxlength" value="25"/>
    <validation-regexp>/^[a-zA-Z]+$/</validation-regexp>
    <validation-message>No numbers or spaces.</validation-message>
  </var>

  <var name="LastName" type="text">
    <description>Last Name</description>
    <html-display-option name="class" value="formText"/>
    <html-display-option name="size" value="20"/>
    <html-display-option name="maxlength" value="25"/>
    <validation-regexp>/^[a-zA-Z]+$/</validation-regexp>
    <validation-message>No numbers or spaces</validation-message>
  </var>
 
  <var name="email" type="text">
    <description>Email Address</description>
    <html-display-option name="class" value="formText"/>
    <html-display-option name="size" value="20"/>
    <html-display-option name="maxlength" value="25"/>
    <validation-regexp>/^[\w\d]+@[a-zA-Z0-9\.]+$/</validation-regexp>
    <validation-message>A valid email address required.</validation-message>
  </var>

</form-config>