Hi, my name is Marcos from Brazil
I want to use the FCKeditor, but i have a question:
how can I use in same page any form objects with the FCKeditor?
I don't know to recuperate data from FCKeditor in my code!
------------------------------
Main code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>main</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="database.php" method="POST" name="form">
<input type="text" name="name" size="105" maxlength="256">
<input type="text" name="title" size="105" maxlength="256">
<?php
$oFCKeditor = new FCKeditor ;
$oFCKeditor->BasePath = '/FCKeditor/' ;
$oFCKeditor->Value = 'Write here</B>.' ;
$oFCKeditor->CreateFCKeditor( 'EditorDefault', '100%', 250 ) ;
?>
<input type="submit" value="input">
</form>
</body>
</html>
RE: [php] FCK with others form objects
and I have the same problem.
my mail kleber01@bol.com.br.
RE: [php] FCK with others form objects
Hi Marcos and Kleber -
I think you want to do this:
------------------------------
Main code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <head> <title>main</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="database.php" method="POST" name="form"> <input type="text" name="name" size="105" maxlength="256"> <input type="text" name="title" size="105" maxlength="256"> <?php $oFCKeditor = new FCKeditor ; $oFCKeditor->BasePath = '/FCKeditor/' ; $oFCKeditor->Value = '' ; /* value will be empty if this is an insert form, or you can make the value display existing content by using: $row_your_table_name['your_column_name']; (replace the single quotes) if your form is an update form */ $oFCKeditor->CreateFCKeditor( 'whatever_your_db_column_name_is_here', '100%', 250 ) ; /* this will be whatever you would have named your form field if it was a textarea */ ?> <input type="submit" value="input"> </form> </body> </html>
RE: [php] FCK with others form objects
[]'s
RE: [php] FCK with others form objects
in my example ,the names of columns are:
1-field 2- value.
The field names of rows are:
1-name 2-title 3-editor.
could you help-me using this names?
thanks
Marcos MM
RE: [php] FCK with others form objects
Best regards,
FredCK
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
RE: [php] FCK with others form objects
Tanks to the group.
Marcos MM