# Dynamic Text Help!

**URL:** <https://forum.kirupa.com/t/dynamic-text-help/248120>\
**Category:** Uncategorized\
**Created:** [January 4, 2008, 1:14am UTC](https://forum.kirupa.com/t/dynamic-text-help/248120 "2008-01-04T01:14:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djseze](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@djseze](https://forum.kirupa.com/u/djseze)\
**Post date:** [January 4, 2008, 1:14am UTC](https://forum.kirupa.com/t/dynamic-text-help/248120/1 "2008-01-04T01:14:13Z")

</div>

K, so I’m having trouble with this dynamic text movie I found online.

The movie or script whatever you call it allows you to fill out a form on one flash movie then it displays the text in the other movie. I thought it was going to be easy adding a few variables and what not but, I’ts alot harder than it seems at least for me. ☹

If anyone can help me I would really appreciate it.

I have attached both versions of the movies and files, the original and the ones I modified. Below is a quick summary of the changes I made:

## ----------------------STEPS---------------- I added another txt field with the variable name “eventText” to the movie “flashwrite”

## I added another txt field with the varilable name “\_root.enventText” to the movie “flashread”

## I added the line “eventText=Event testing 1234” to the “data.txt” file so it reads: enterText=Testing 123 eventText=Event testing 1234

I added “$text = $\_POST[‘eventText’];” line to the to the “form.php” file so it reads:

\<?php  
//Kyle M. Brown  
[//admin@mayvik.com](https://admin@mayvik.com)  
[//www.mayvik.com](https://www.mayvik.com)  
//  
//Turn off all Notice reporting only  
error\_reporting(E\_ALL ^ E\_NOTICE);  
//Processing message  
echo ‘Processing data’;  
//This code is used to write to a text file  
$text = $\_POST[‘enterText’];  
$text = $\_POST[‘eventText’];  
/_Check for null text from flashwrite.swf form. Error checking handled in flashwrite.swf and this code is not needed  
if (!$text)  
{  
echo ‘Form was empty, please go back and complete the form or you will be redirected in 2 seconds.’;  
echo “\<meta http-equiv=‘refresh’ CONTENT=‘3; URL= flashwrite.htm’\>”;  
exit;  
}_/  
// Open the file and erase the contents if any  
$fp = fopen(“data.txt”, “w”);  
// Write the data to the file  
fwrite($fp, $text);  
if (!fwrite)  
{  
echo ‘Error: could not write to text file’;  
} else {  
//redirect to read.php  
//header(“location: read.php”);  
echo “\<meta http-equiv=‘refresh’ CONTENT=‘1; URL= flashread.html’\>”;  
}  
// Close the file  
fclose($fp);  
?\>
