PHP & XMLAny ideas?
Page 1 of 1
10 Replies - 1462 Views - Last Post: 05 March 2002 - 09:09 AM
#1
PHP & XML
Posted 28 January 2002 - 04:22 PM
Replies To: PHP & XML
#2
Re: PHP & XML
Posted 28 January 2002 - 04:37 PM
#3
Re: PHP & XML
Posted 28 January 2002 - 04:43 PM
#4
Re: PHP & XML
Posted 28 January 2002 - 04:49 PM
#5
Re: PHP & XML
Posted 28 January 2002 - 04:53 PM
#6
Re: PHP & XML
Posted 28 January 2002 - 05:10 PM
As you can see with my other scripts, I'm new to PHP and programining in general.
#7
Re: PHP & XML
Posted 29 January 2002 - 03:28 PM
I posted on DevShed too and nobody seems to have a clue... time for a bit of intuitave (sic) coding methinks... :D
[edit] intuitave? inventive? in-somethingorother, I can code but i can't spell...[/edit]
(Edited by Sargant at 10:29 pm on Jan. 29, 2002)
#8
Re: PHP & XML
Posted 29 January 2002 - 04:06 PM
#9
Re: PHP & XML
Posted 29 January 2002 - 04:26 PM
Quote
Well, that's one better than me, I can't spell OR code.
LOL
Together now with Uncle Rob...
c.. a.. t.. cat.
See?
Well done! ;) :D
#10
Re: PHP & XML
Posted 05 March 2002 - 07:39 AM
So with:<var name=”foo”>bar</var> you end up with name => value pairs and in this case an array equivalent to $array = array( ‘foo’ => ‘bar’);.
Then run a foreach loop to load each key/value pair into something like:
<tr>
<td>foo</td><td><input type="text" name="foo" value="bar">
</tr>
and print the form.
Because every node is accounted for (with the old value and the option to change it via the input box) when the administrator submits the form just recompile all the key/value pairs into a new xml file and write to disk.
I'm sorry I cant give you any code examples but it should be straight forward enough.
(Edited by iordy at 9:43 am on Mar. 5, 2002)
#11
Re: PHP & XML
Posted 05 March 2002 - 09:09 AM
;D
|
|

New Topic/Question
Reply




MultiQuote




|