I have manage to install FCK on a page called admin - and everything is working fine, incl. image browsing. Here the code:
<!--#include file="template2.asp"-->
<!-- #INCLUDE file="FCKeditor/fckeditor.asp" -->
<%function title()%>
Admin
<%end function%>
<%function content()%>
<div class="title" style="font-size:18">Admin area & Editor
<body>
<form action="webdesign.asp" method="post">
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Create "FCKeditor1"
%>
<br>
<input type="submit" value="Submit">
</form>
</body>
<%end function%>
I have made a testpage called webdesign, where I want the output from the editor, but I am totally lost. I know, I shall make something with a form, but I don't know how?
Can anybody give me this code?
My testpage, where I want it to show up look like at the moment like this:
<!--#include file="template2.asp"-->
<!-- #INCLUDE file="FCKeditor/fckeditor.asp" -->
<%function title()%>
Product 2
<%end function%>
<%function content()%>
<div class="title" style="font-size:18">Web Design</div>
<% If Request.Form("webdesign") <> "" Then %>
Dim sValue
sValue = Request.Form( "FCKeditor1" )
<%End if%>
<%end function%>
Thanks for helping me!
Can anybody tell me, which code I shall put in
<!--#include file="template2.asp"-->
<!-- #INCLUDE file="FCKeditor/fckeditor.asp" -->
<%function title()%>
Admin
<%end function%>
<%function content()%>
<div class="title" style="font-size:18">Admin area & Editor
<body>
<form action="webdesign.asp" method="post">
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Create "FCKeditor1"
%>
<br>
<input type="submit" value="Submit">
</form>
</body>
<%end function%>
I have made a testpage called webdesign, where I want the output from the editor, but I am totally lost. I know, I shall make something with a form, but I don't know how?
Can anybody give me this code?
My testpage, where I want it to show up look like at the moment like this:
<!--#include file="template2.asp"-->
<!-- #INCLUDE file="FCKeditor/fckeditor.asp" -->
<%function title()%>
Product 2
<%end function%>
<%function content()%>
<div class="title" style="font-size:18">Web Design</div>
<% If Request.Form("webdesign") <> "" Then %>
Dim sValue
sValue = Request.Form( "FCKeditor1" )
<%End if%>
<%end function%>
Thanks for helping me!
Can anybody tell me, which code I shall put in
RE: I try to learn - but I need help...
Best I can do is send you code how I set it up using PHP. No Microcrap ASP servers here!!!
I set up FCK much as it is. But when the user presses submit, I took the value of fckeditor1 from the form and saved it in a MySQL table row. When a visitor views the page, PHP opens MySQL and spews out the HTML saved.
RE: I try to learn - nobody knows about ASP?
Maybe my quistion is stupid. I don't know? I am new in this things, and I don't know how to solve the problem.
Please try to help me!
RE: I try to learn - but I need help...
I have an ASP page, and no database.
I only want the content from the editor to show up on another asp page. Is this possible?
Look at my code in "I try to learn..."
RE: I try to learn - but I need help...
RE: I try to learn - but I need help...
which tests if the webdesign field was posted empty and as I see, the form doesn't have such a field.
I think you wanted to write <% If Request.Form("FCKeditor1") <> "" Then %>
However, I would write those instructions in oher way:
sValue = Request.Form( "FCKeditor1" )
If Trim(sValue) <> "" Then
' .... store the text in database, for example
End If
And a question for you now. What's the goal of:
<%function title()%>
Admin
<%end function%>
<%function content()%>
Mind the context changes. don't make abuse of <% %>
Jaime