Re: XForms: submission with POST, does it work?
Nils Dehl <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
> Thanks for you help, but my problem is on the client side; my server
> (ruby's WEBrick) simply doesn't seem to receive anything from the
> FireFox client when using "post" as method. Could you please show me how
> you configured the <submission> ?
Here it is:
<t3:model>
<t3:instance>
<dataxmlns="">...</data>
</t3:instance>
<t3:submission action="index.php?id=392" method="post" id="sub"/>
</t3:model>
Instance:
...
<t3:submit ref="/data/absenden_15" submission="sub">
check the membership between id="sub" and submission="sub"
also see my thread to this question: "XForms: Howw to handle
method="post" with php"
this snippet help me to check if data were recieve:
$postedXML = new DOMDocument();
$loaded = $postedXML->load('php://input');
if ($loaded) {
echo "<p>Received " . $postedXML->getElementsByTagName('*')->length
. " elements.</p>\r\n";
}
else {
echo "<p>Error parsing XML.</p>\r\n";
}
good luke
nils