Posting to txt file

is it possible to write text from a input text field to be submited in flash and proceced by a .php and write it to a txt file posting it like so the name get posted in front of nameposted= and the the adress in front of urlposted= and the description posted in front of descriptionposted= help pls

Yes. Use PHP.

(i knew some one would say that) ell can u help me make it?

Howdy… :slight_smile:

The script in the thread right below you can be pretty much used as it is to write the data you are sending to the PHP to the text file…
http://www.kirupaforum.com/forums/showthread.php?t=63647

could you tell me the code because i am a php n00b


#write to file

$sting =' Some text to write into the text file. ';
$file ="sometext.txt";
$openfile = fopen($file, "w") or die ("couldnt open file");
fwrite ($openfile, $string);
fclose ($openfile);

Thats all fokes.

PHP.net Has great Tutorials

yes but i am posting from a flash swf to make a link directory eg. i have 3 input fields: name of site with the instance name of: name, url of the site with the instance name of: url and the last input field description of the site with the instance name of: des i would like to post it to a txt file like this

linkName= {then post wat the flash form had for the instance name: name}
linkUrl= {then post wat th flash form had for the instance name: url}
linkDes= {the post wat the flash form had for the instance name: des}

and i want it so the next one to be published go to the top so:

linkName= (second post)
linkUrl= (second post)
linkDes= (second post)
linkName= (first post)
linkUrl= (first post)
linkDes= (first post)

and so on!

people pls help!

Sorry dont know didly about flash… cant help ya there.

come dont let me down i need this!

ONly thing i can say if you know the how to catch the output of youre flash vars. and put them into the part that says $string, you will have it :slight_smile:

flash would work the same as an html form, run a search on the forums for setting up a form.