I made a form in php so that we could electronically fill out a form rather than faxing back and forth, and make it more legible.
The issue I'm having is populating the final page, I was handed a form created in Word 2007, which I converted to a Word 2003 XML since I figured it would be easier to populate the fields.
I can open the XML in the web browser, and I have yet to echo my php session variables into it. The form doesn't show, just the tree does.
Hence my issue is that I have this form in XML, but Word doesn't supply you with an XSLT. So there is no stylesheet, where there must be something somewhere, since Word can open it fine.
Just wondering if someone has had this issue, or might know of a way around it.
Or if there is another way to make this easier, I wouldn't object to the either.
The catch is that the form is from another company, and they are very specific about how they want it to look, so it can't really be changed in any way.
I'm not familiar with 2003 XML but are you setting the content-type headers? If you send the document and don't say it's a word document, it will appear as a plain xml file. I know that you could send an HTML table and it will automatically open in Excel if you set the content-type to be application/vnd.ms-excel. Not sure which will be the one for word 2003.
You could also try searching for OpenXML. I believe there are libraries in PHP that let you manipulate this MS new document standard.
The XML document you are using is doubtlessly full of tags from a Microsoft-defined namespace that have no meaning outside of Word and are not going to magically turn into valid HTML in any browser.