# HTML is being passed with loadVariables()

**URL:** <https://forum.kirupa.com/t/html-is-being-passed-with-loadvariables/260159>\
**Category:** flash\
**Created:** [May 13, 2008, 1:48am UTC](https://forum.kirupa.com/t/html-is-being-passed-with-loadvariables/260159 "2008-05-13T01:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uncle\_phil](https://avatars.discourse-cdn.com/v4/letter/u/8baadc/32.png) [@uncle\_phil](https://forum.kirupa.com/u/uncle_phil)\
**Post date:** [May 13, 2008, 1:48am UTC](https://forum.kirupa.com/t/html-is-being-passed-with-loadvariables/260159/1 "2008-05-13T01:48:16Z")

</div>

HI guys, i’m trying to send out some input form variables top a php script via loadVariables() … and it’s working, but the only problem is that flash also sends out all the html font information along with the form data. so instead of getting something like “Name: Phil” the php script gets:

```auto
<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Hypatia Sans Pro Semibold\" SIZE=\"11\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">Name: Phil</FONT></P></TEXTFORMAT>
<p align=\"left\"></p>

```

is there a way to keep this from happening in flash or do i need to start getting fancy with the php?

Thanks!

---

<div class="post-metadata">

**Author:** ![djheru](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/djheru/32/3190_2.png) [@djheru](https://forum.kirupa.com/u/djheru)\
**Post date:** [May 13, 2008, 12:59pm UTC](https://forum.kirupa.com/t/html-is-being-passed-with-loadvariables/260159/2 "2008-05-13T12:59:06Z")

</div>

When you create your loadVars properties, are you setting it up like:

mylv.name\_txt = name\_txtInput.htmlText;

?

Because if you are, it seems like that may be the problem.  
it should be  
mylv.name\_txt = name\_txtInput.text;

Also, in your input text field, make sure the “\<\>” button is not selected in your properties.

---

<div class="post-metadata">

**Author:** ![uncle\_phil](https://avatars.discourse-cdn.com/v4/letter/u/8baadc/32.png) [@uncle\_phil](https://forum.kirupa.com/u/uncle_phil)\
**Post date:** [May 13, 2008, 4:36pm UTC](https://forum.kirupa.com/t/html-is-being-passed-with-loadvariables/260159/3 "2008-05-13T16:36:53Z")

</div>

actually, this is the only code i have for loadVariables

```auto

_root.container.form_stuff.form.loadVariables("email.php", "POST");

```

all of the rest is set up in the properties window. and i don’t have the “render text as html” button selected either.

is there a better way of sending form variables? I just got this from the “Flash Based Email Form Using PHP” here on the site.
