# Dynamic Input Pb

**URL:** https://forum.kirupa.com/t/dynamic-input-pb/58262
**Category:** flash
**Created:** [July 21, 2004, 2:11am UTC](https://forum.kirupa.com/t/dynamic-input-pb/58262 "2004-07-21T02:11:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)
#### Post date: [July 21, 2004, 2:11am UTC](https://forum.kirupa.com/t/dynamic-input-pb/58262/1 "2004-07-21T02:11:46Z")

</div>

Hello 🙂

I’m having a weird pb: I have a input text field dynamicly created. I load a text file that fills up my input-text-field. If you select and delete a few lines, and trace it, it traces the text minus the lines that were removed, allgood.  
What i’m trying to do now, is overwrite my text file (using php). I have a save button with that piece of code:

on (press) {  
trace(\_root.mytf.htmlText);  
if (\_root.mytf.htmlText != “”) {  
myData.News = “&news=”+\_root.mytf.htmlText;  
myData.sendAndLoad(“save.php”, myData, “POST”);  
}  
}

The save.php beeing a small script that catches the variables back and shoot em into a txt file.

But when i press my button, the text field resets itself back to the text before the modifications. So it overwrite the same \*\*\*\* thing. Why??
