View Full Version : posting to txt file
my portal
July 23rd, 2004, 11:47 AM
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
Yeldarb
July 23rd, 2004, 12:02 PM
Yes. Use PHP.
my portal
July 23rd, 2004, 12:03 PM
(i knew some one would say that) ell can u help me make it?
CyanBlue
July 23rd, 2004, 12:18 PM
Howdy... :)
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
my portal
July 23rd, 2004, 02:15 PM
could you tell me the code because i am a php n00b
ol4pr0
July 23rd, 2004, 04:15 PM
#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 (http://www.php.net/fwrite/)
my portal
July 24th, 2004, 04:53 AM
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!
my portal
July 25th, 2004, 08:20 AM
people pls help!
ol4pr0
July 25th, 2004, 08:54 PM
Sorry dont know didly about flash.. cant help ya there.
my portal
July 26th, 2004, 09:04 AM
come dont let me down i need this!
ol4pr0
July 26th, 2004, 10:10 AM
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 :)
Digitalosophy
July 26th, 2004, 11:46 AM
flash would work the same as an html form, run a search on the forums for setting up a form.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.