Hi all,
I have successfully intergrated FCKEditor into my web page but I am having a problem with the form.
How can I produce the form so it has a Subject field.
Many thansk if you can help.
Keep safe and well.
Dereck
I have successfully intergrated FCKEditor into my web page but I am having a problem with the form.
How can I produce the form so it has a Subject field.
Many thansk if you can help.
Keep safe and well.
Dereck
Re: Forms and additions fields
Re: Forms and additions fields
I have the FCKEditor load within my web page bust I would like to a a subject field above the area when the user enter thier text. Just like the add a new topic in this forum.
Many thanks for any advise you can offer.
Dereck
Re: Forms and additions fields
<form method="POST">
<input type="text" name="subject" style="width: 680px;" value="">
<textarea id="mytext" name="mytext" style="width: 700px; height: 500px;"></textarea>
<input type="submit" name="submit" value="Submit">
</form>
FCK editor would be bound to the text area and the input would be submitted as a separate control under the name "subject".
Re: Forms and additions fields
Again thank you for the reply.
I am not to sure how to arrange the FCKEditor PHP code within the form. Or am I looking at this completely wrong?
It the line in red that I want the user to be able to input text.
Can you advise.
Many thanks again.
Dereck
MY FORM.
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="tabelredborder">
<tr valign="baseline">
<td align="right" nowrap="nowrap" class="clienttableheader"> </td>
<td><input type="hidden" name="id" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap="nowrap" class="clienttableheader">CLIENT ID:</td>
<td><input name="client_id" type="text" class="bodytext" value="<?php echo $_SESSION['record_id']; ?>" size="12" /></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap="nowrap" class="clienttableheader">DATE:</td>
<td><input name="record_date" readonly="readonly" type="text" class="bodytext" value="<?php print date("Y-m.d"); ?>" size="12" /></td>
</tr>
<?php
SoFCKeditor = new FCKeditor('record_content') ;
$oFCKeditor->BasePath = '/fckeditor/' ;
$oFCKeditor->Config['EnterMode'] = 'br';
$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?>
<tr valign="baseline">
<td align="right" valign="top" nowrap="nowrap" class="clienttableheader">FOLLOW UP:</td>
<td><textarea name="followup" cols="80" rows="5" class="bodytext" id="followup"></textarea></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap="nowrap" class="clienttableheader">FOLLOW UP DATE:</td>
<td><input type="text" name="followupdate" value="" size="12" class="bodytext" onclick='scwShow(this,this);'/></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap="nowrap" class="clienttableheader"> </td>
<td><input name="actionby" type="text" id="actionby" value="<?php echo $_SESSION['_amember_user']['login'] ?>" /></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap="nowrap" class="clienttableheader"> </td>
<td><input type="submit" value="Insert record" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form>
END FORM
Re: Forms and additions fields
All sorted.
Many thanks for your help.
Dereck