topical media & game development

talk show tell print

basic-xml-19-PersonData.htm / htm



  <?xml version="1.0"?>
  
  <html 
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xforms="http://www.w3.org/2002/xforms" 
   xmlns:xmml="http://www.XMML.com/namespace" >
  <head>
   <object id="FormsPlayer" classid="CLSID:4D0ABA11-C5F0-4478-991A-375C4B648F58">
    <b>FormsPlayer has failed to load! Please check your installation.</b>
    <br />
   </object>
  <?import namespace="xforms" implementation="#FormsPlayer"?>
  <title>Personal Information collection using XForms</title>
  <xforms:model schema="Person.xsd" >
   <xforms:instance  >
    <Person xmlns="http://www.XMML.com/namespace" >
     <FirstName></FirstName>
     <LastName></LastName>
     <Street></Street>
     <City></City>
    </Person>
   </xforms:instance>
   <xforms:submission id="PersonData" action="file://c:/BXML/Ch19/SavedPerson.xml" method="put" />
  </xforms:model>
  </head>
  <body>
   <p>Enter your name and the date you are submitting the information.</p>
   <xforms:input ref="/xmml:Person/xmml:FirstName">
    <xforms:label>Enter your first name:</xforms:label>
   </xforms:input>
   <br />
   <xforms:input ref="/xmml:Person/xmml:LastName" >
    <xforms:label>Enter your last name:</xforms:label>
   </xforms:input>
   <br />
    <xforms:input ref="/xmml:Person/xmml:Street" >
    <xforms:label>Enter Street address here:</xforms:label>
   </xforms:input>
   <br />
     <xforms:input ref="/xmml:Person/xmml:City" >
    <xforms:label>Enter the city here:</xforms:label>
   </xforms:input>
   <br />
   <xforms:submit submission="PersonData" replace="all" >
    <xforms:label>Click Here to Submit</xforms:label>
   </xforms:submit>
  </body>
  </html>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.