I am trying to figure out a way to use a PHP script that would be:
- Open the XML document when the link to this document is clicked (with HTML).
- Scan an XML document for tags.
- Create an HTML form with an input field based on tags.
- Send the source data back to XML in tags (when the form is submitted) and print the XML to HTML.
So, if I had an XML file that would look like this:
<profile>
Hello, my name is <name></name>. I am <age></age> years old. I live in <place></place>
</profile>
When you click on a link to this file, PHP will generate this form:
<form>
Name:
Age:
Place:
</form>
Then, after filling out and submitting the form (say, the person Joel, 25 years old, from Boston), the following will be superimposed on the screen:
Hi, my name is Joel. I am 25 years old. I live in Boston.
Any code will be appreciated or indicates good tutorials.
THX
E.
source
share