# Posting to txt file

**URL:** https://forum.kirupa.com/t/posting-to-txt-file/58563
**Category:** Uncategorized
**Created:** [July 23, 2004, 3:47pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563 "2004-07-23T15:47:51Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![my\_portal](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@my\_portal](https://forum.kirupa.com/u/my_portal)
#### Post date: [July 23, 2004, 3:47pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/1 "2004-07-23T15:47:51Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 4:02pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/2 "2004-07-23T16:02:12Z")

</div>

Yes. Use PHP.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 4:03pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/3 "2004-07-23T16:03:40Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 4:18pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/4 "2004-07-23T16:18:11Z")

</div>

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](http://www.kirupaforum.com/forums/showthread.php?t=63647)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 6:15pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/5 "2004-07-23T18:15:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 8:15pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/6 "2004-07-23T20:15:48Z")

</div>

```php

#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/)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 24, 2004, 8:53am UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/7 "2004-07-24T08:53:18Z")

</div>

## 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!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 25, 2004, 12:20pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/8 "2004-07-25T12:20:19Z")

</div>

people pls help!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2004, 12:54am UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/9 "2004-07-26T00:54:06Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2004, 1:04pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/10 "2004-07-26T13:04:27Z")

</div>

come dont let me down i need this!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2004, 2:10pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/11 "2004-07-26T14:10:21Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2004, 3:46pm UTC](https://forum.kirupa.com/t/posting-to-txt-file/58563/12 "2004-07-26T15:46:42Z")

</div>

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