# Text color from PHP

**URL:** <https://forum.kirupa.com/t/text-color-from-php/24352>\
**Category:** Uncategorized\
**Created:** [June 29, 2003, 6:47pm UTC](https://forum.kirupa.com/t/text-color-from-php/24352 "2003-06-29T18:47:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syphon101](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@syphon101](https://forum.kirupa.com/u/syphon101)\
**Post date:** [June 29, 2003, 6:47pm UTC](https://forum.kirupa.com/t/text-color-from-php/24352/1 "2003-06-29T18:47:46Z")

</div>

I have a simple flash mail form that’s processed in PHP. I have a statusEmail textbox that displays error messages in red sent from the php if they didn’t enter certain information. When the e-mail is sent, I want to be able to change the text box color from red to blue and display the success text. So, how can I change the color of a textbox in flash from php?

Here’s my code:  
print “\_root.emailStatus.textColor=0x0000FF”;  
print “\_root.emailStatus=Complete - Thank you, $name!”;

but it doesn’t work ☹ Anyone know how i can do 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:** [June 29, 2003, 6:53pm UTC](https://forum.kirupa.com/t/text-color-from-php/24352/2 "2003-06-29T18:53:57Z")

</div>

my last post in this thread shows you how to send variables back into Flash from a PHP file: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604)

---

<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:** [June 29, 2003, 7:08pm UTC](https://forum.kirupa.com/t/text-color-from-php/24352/3 "2003-06-29T19:08:28Z")

</div>

I’m sending it back to Flash the same way you teach, but it isn’t working. I can get the text box to display text correctly, but it’s just a matter of changing the color of the text from php is what’s not working.
