PHP: $_POST array to XML file and display results.
Posted
by
user633264
on Stack Overflow
See other posts from Stack Overflow
or by user633264
Published on 2011-03-12T00:41:18Z
Indexed on
2011/03/12
8:10 UTC
Read the original article
Hit count: 251
I'm creating a "Madlibs" page where visitors can create funny story things online. The original files are in XML format with the blanks enclosed in XML tags
(Such as blablabla <PluralNoun></PluralNoun> blablabla <Verb></Verb> ).
The form data is created using XSL and the results are saved using a $_POST array. How do I post the $_POST array between the matching XML tags and then display the result to the page? I'm sure it uses a "foreach" statement, but I'm just not familiar enough with PHP to figure out what functions to use. Any help would be great.
Thanks, E
© Stack Overflow or respective owner