Question:
HELP WANTED FOR XML AND PHP?
anonymous
2010-09-22 23:13:37 UTC
I've created a HTML form to accept contact details of a person. Now i want to store that data in an XML file using PHP and i should be able to add, update or delete contacts in the same XML file. Also I should be able to view those contacts in a HTML file after retrieving the XML file into HTML file. Please someone suggest how to do it??

Its URGENT!!!!!!
Four answers:
anonymous
2010-09-24 08:17:06 UTC
For handling xml, php has many extensions like dom and simple xml .

Please check whether your php installation support these extension.

You can check this by using output of phpinfo() function.



Go to w3school.com php tutorial for quick guide on using php,xml and ajax.

Later you can use php manual and other advanced book on the topic.



one more thing give 777 permission to xml file.



apart from that you can also use sqlite as your database for the purpose. it will help you when the data will grow larger.
poeticjustice72182
2010-09-22 23:25:01 UTC
I hate to give such a short answer, but you should take a look here:



http://php.net/manual/en/book.simplexml.php



That will give you a reasonable overview of how to manipulate XML using PHP, which is exactly what you need.
anonymous
2010-09-22 23:28:54 UTC
the html is used for the static sites and yo u have need to connect the form with the database
equiluz
2016-10-13 12:07:12 UTC
html controlled with the help of own domicile page? i on no account heard that. yet own domicile page is surprisingly good while it is composed of internet apps. provide it a try, plus there's a lot greater tutorials and help for own domicile page anyhow. you won't be in a position to truly circulate incorrect with own domicile page because of the fact it relatively is what maximum persons use.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...