Is there anyway to send the information typed into an input text field to an external simple text file? I don't know CGI scripting. Thanks
Flash alone can't do the job. You must know Perl, ASP, PHP or others.
Hi, PHP example code - assuming your text box is simply called "text" Code: <? if($fp = @fopen("textfile.txt", "w")) { $text = ereg_replace("\r", "\n", $text); $text = ereg_replace("%", "%25", $text); $text = ereg_replace("&", "%26", $text); fputs($fp, "text=$text"); fclose($fp); print "status=ok"; } else print "status=cannot+open+for+write"; ?> The text replace things are there so that you can view the text file and also reopen it in flash Musicman
<? if($fp = @fopen("textfile.txt", "w")) { $text = ereg_replace("\r", "\n", $text); $text = ereg_replace("%", "%25", $text); $text = ereg_replace("&", "%26", $text); fputs($fp, "text=$text"); fclose($fp); print "status=ok"; } else print "status=cannot+open+for+write"; ?>
Forum Rules