Not sure exactly what you're trying to do. There are a few problems with your code sample that jump right out.
First of all, the first parameter for df_display() should be an array:
e.g.
- Code: Select all
df_display(array('form'=>$form), 'test.html');
Next, for the FCKeditor. Are you editing a record in the database or are you making a custom form where the field isn't particularly bound to a field in the database.
i.e. Are you basically recreating the edit form for a record, or is this action doing something different?
If you are recreating the edit form for a record, then you may want to check out the
df_create_edit_record_form function.
If you are building a form for other purposes, you could still use the df_create_edit_record_form() function as a basis.
-Steve