Topic: Simple DOM-XML Problem Pages that link to <a href="https://ozoneasylum.com/backlink?for=22046" title="Pages that link to Topic: Simple DOM-XML Problem" rel="nofollow" >Topic: Simple DOM-XML Problem\

 
Author Thread
zwischi
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jun 2004

IP logged posted posted 06-04-2004 15:50 Edit Quote

Hi!

Who can help me?

My Problem:

To generate a XML-File from the content of a HTML-form.

[code]
<form name="form" method="post" action="SCRIPT.PHP">
<input type="text" name="textfield">
<input type="submit" name="Save" value="Save">
</form>

So someone puts in data in this textfield, it should be saved in a XML-file in a new node.

E.g.:

someone puts in: 123 --> XML-file: <xml><content><item 1><textfield>123</textfield></item 1></content></xml>

after this, someone puts in: 456 --> XML-file: <xml><content><item 1><textfield>123</textfield></item 1><item 2><textfield>456</textfield></item 2></content></xml>

So the whole data is stored in the xml file and you can see item 1 and item 2 in the xml file!

Thx

:::tom:::

PS:Sorry for my bad english

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 06-04-2004 16:11 Edit Quote

I'd start by looking into php->fopen and php->fread and php->fwrite and assorted functions to grasp how php handles files (same as nearly every other computer language, actually).
Then, when you read and tried that (and hopefully have read all of the php documentation) and are still not succeeding, post again, showing what you've done so far.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu