Jump to content

from flash to php, from php to a text file...


westonlea7

Recommended Posts

first of all i got my code for flash which sends my variable named newthing to a php file using GET with this code

 

_root.getURL ("http://localhost/addnewkey.php", _blank, "GET");

 

and ive got my php file which contains this code

 

<?php
$filename = 'keys.txt';
$somecontent = $_GET['newthing'];
$text =fopen("keys.txt", 'a');
fwrite($text, $somecontent );
fclose ($text);
?>

 

 

but everytime when i send the variable Hello instead of writing hello to the text file it writes

 

<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="arial" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">hello</FONT></P></TEXTFORMAT><p align="left"></p>;

 

any ideas?

looks like your sending text rendered as html to your script. un click the render as html button for your dynamic text box in the properties inspector. if you need it you should just make a extra variable that holds the piece of data you want send.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.