# toString for php

**URL:** <https://forum.kirupa.com/t/tostring-for-php/223849>\
**Category:** flash\
**Created:** [April 26, 2007, 6:01am UTC](https://forum.kirupa.com/t/tostring-for-php/223849 "2007-04-26T06:01:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)\
**Post date:** [April 26, 2007, 6:01am UTC](https://forum.kirupa.com/t/tostring-for-php/223849/1 "2007-04-26T06:01:07Z")

</div>

Mods, this might need to be in the PHP area, but I think it’s more of a AS question.

I am trying to send htmlText to a php file which then the php file will store the htmlText data in a mysql database. If need be I can post the php. It doesn’t save htmlText. It will store text but not htmlText

```auto
modBTN.onRelease = function(){
    var tableN:String = _root.holderAll.subholder.changeUsed.xmlTextUsed;
    var newxpos:Number = foundationMC.editItems.specificItem.box._x;
    var newypos:Number = foundationMC.editItems.specificItem.box._y;
    var newWidth:Number = foundationMC.editItems.specificItem.box._width;
    var newHeight:Number = foundationMC.editItems.specificItem.box._height;
    var newWords:String = foundationMC.editItems.specificItem.box.htmlText; <--- only this doesn't work
    var selectedElement:String = foundationMC.editItems.id.toString();
        statusArea.text += accessPointMain+"contentTextModInfo.php?tableName="+tableN+"&newxpos="+newxpos+"&newypos="+newypos+"&newWidth="+newWidth+"&newHeight="+newHeight+"&newWords="+newWords+"&selectedElement="+selectedElement + '
'
    var sendPHP:LoadVars = new LoadVars();
    var resultsPHP:LoadVars = new LoadVars();
    sendPHP.sendAndLoad(accessPointMain+"contentTextModInfo.php?tableName="+tableN+"&newxpos="+newxpos+"&newypos="+newypos+"&newWidth="+newWidth+"&newHeight="+newHeight+"&newWords="+newWords+"&selectedElement="+selectedElement, resultsPHP, "POST");
    resultsPHP.onLoad = function(success:Boolean){
            statusArea.text += "Element Changes Saved" + '
'
    }
}

```
