![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2006
Posts: 2
Rep Power: 0
![]() |
Inserting data into xml file
Ok I know zero javascript, but I know PHP and basic programming concepts.
So I need to open a xml file as read and write. insert some data from a form so bassicaly the form will have one field for keyword and from that form data I want to insert it into the xml file as <item name="form info" /> Then I want to close the file as read only. It would be a great help if someone could give me some links to things that could help or like some information. The reason I want to do it in javascript is because I want it to be crossplatform because not everyone who needs this script could have PHP on it. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
Javascript is client side and does not have any read/write permissions to the users hard drive. PHP is server side but does have read/write permissions to servers hard drive. PHP is the only way you are going to be able to do this. In paticular I would recommend PHP5 since version 4 is a lot more limited in its ability to handle XML files. If for some reason you can't use PHP at all then another server side language like Python or Ruby would work.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jul 2006
Posts: 2
Rep Power: 0
![]() |
yea I found a place that told me how to do it in PHP the thing that I just couldnt figure out in PHP was how to set the attribute and I saw a way to do it in javascript so i thought someone would know. thanks anyway.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnlineTextEditor.Com! | Sane | Show Off Your Open Source Projects | 43 | Jun 16th, 2006 8:55 AM |
| Help in QBASIC (I think it's similar to VB) | phoenix987 | Visual Basic | 3 | May 9th, 2005 12:33 PM |
| Help with a QBASIC program | phoenix987 | Other Programming Languages | 4 | May 5th, 2005 12:27 PM |
| After execution - Error cannot locate /Skin File? | wchar | Visual Basic | 1 | Mar 5th, 2005 9:04 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |