westonlea7 Posted March 30, 2008 Share Posted March 30, 2008 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? Link to comment https://forums.phpfreaks.com/topic/98727-from-flash-to-php-from-php-to-a-text-file/ Share on other sites More sharing options...
stopblackholes Posted March 31, 2008 Share Posted March 31, 2008 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. Link to comment https://forums.phpfreaks.com/topic/98727-from-flash-to-php-from-php-to-a-text-file/#findComment-505227 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.