» XForms ������һ�ִ�ͳ web ���ı��֣����������ڸ����ƽ̨��������������Ǵ�ͳ��ý������ PDF �ĵ���
XFroms �ĵ�һ���ؼ������DZ��������͵��ͻ��ˡ�» XForms for HTML Authors �������������� XForms ����ϸ˵��������ֻ��һ�������ӡ�
Example #1 һ���� XForms ������
<h:html xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/2002/xforms">
<h:head>
<h:title>Search</h:title>
<model>
<submission action="http://example.com/search"
method="post" xml:id="s"/>
</model>
</h:head>
<h:body>
<h:p>
<input ref="q"><label>Find</label></input>
<submit submission="s"><label>Go</label></submit>
</h:p>
</h:body>
</h:html>
����ı���ʾһ���ı����������Ϊ
q����һ���ύ��ť��������ύ��ť�����������͵�
action ��ָʾ��ҳ�档
�����Ǵ� web Ӧ�ö˵ĽǶȿ���ȥ����������ͨ�� HTML ���У����ݷ���ʽ�� application/x-www-form-urlencoded���� XForms �������У�����Ϣ���� XML ��ʽ���ݷ��͵ġ�
���ѡ��ʹ�� XForms����ô����Ϊ XML����������£��� $HTTP_RAW_POST_DATA �а������������������ XML �ĵ������Խ��䴫�ݸ���ƫ�õ� XSLT ��������ĵ���������
����Ը�ʽ������Ȥ��ֻ�������ݽ��뵽��ͳ��
$_POST �����У�����ָʾ�ͻ��������������
application/x-www-form-urlencoded
��ʽ���ͣ�ֻҪ�� method ���Ըij�
urlencoded-post ���ɡ�
Example #2 ʹ�� XForm ������ $_POST
<h:html xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/2002/xforms">
<h:head>
<h:title>Search</h:title>
<model>
<submission action="http://example.com/search"
method="urlencoded-post" xml:id="s"/>
</model>
</h:head>
<h:body>
<h:p>
<input ref="q"><label>Find</label></input>
<submit submission="s"><label>Go</label></submit>
</h:p>
</h:body>
</h:html>
Note: ��д���ĵ�ʱ��������������֧�� XForms�������������ʧ�������Լ���������汾��