Hello,
So I set up the PHP without any troubles, but ASP is a complete new language to me when trying to do something like this.
All i need to do is set up the FCKeditor on a page, and have it output to a txt file so my front-end page can load that txt file in. As well as have the FCKeditor page once opened display the content from within the txt file. The FCKeditor will be behind an admin section aswell
Can anyone help me set this up in ASP? It would be greatly appreciated.
I understand the basic form part of it, that's listed in the "Developer's Guide / Integration / ASP", and they also gave me
Dim sValue sValue = Request.Form( "FCKeditor1" )
to store the value of the input, but i have no clue to to open a txt file and save this value to it using ASP.
This is my PHP action code | the form action is set to "$_SERVER['HTTP_REFERER']" (it works, but i need an asp version)
$sValue = stripslashes( $_POST['FCKeditor1'] ) ; $action = $_REQUEST['sent']; $filename = "../promotions-en.txt"; //Edit this to point to ur textfile $handle = fopen($filename, "rb"); fclose($handle); if ($action=="sent"){ $fh = fopen($filename, 'w') or die("Can't Access the file at this moment."); $stringData = $sValue; fwrite($fh, $stringData); fclose($fh); $saved = "<p>Your file has been saved</p>"; }
Re: FCKeditor ASP Setup * Basic help needed