Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 26th, 2006, 10:42 AM   #1
mikeandike22
Newbie
 
Join Date: Jul 2006
Posts: 2
Rep Power: 0 mikeandike22 is on a distinguished road
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.
mikeandike22 is offline   Reply With Quote
Old Jul 26th, 2006, 11:33 AM   #2
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 102
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
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.
Darkhack is offline   Reply With Quote
Old Jul 26th, 2006, 1:10 PM   #3
mikeandike22
Newbie
 
Join Date: Jul 2006
Posts: 2
Rep Power: 0 mikeandike22 is on a distinguished road
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.
mikeandike22 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:39 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC