I 'm having an issue creating a form in ckeditor. All goes well until I attempt to add buttons. When I save the field it adds the buttons to my page code instead of leaving them inside the ckeditor.
Here's what I have:
Form that submits data to a mysql database:
and the data in the ckeditor field:
I can't seem to figure out what I'm doing wrong
Here's what I have:
Form that submits data to a mysql database:
<form action="" method='POST' id="alertUp">
<table id="userfrm">
<tr>
<td><strong>Title: </strong></td>
<td></td>
</tr>
<tr>
<td><input class="{required:true, messages:{required:'A title is required.'}}" type='text' name='title' value='<?= stripslashes($row['page_title']) ?>' size="60" /></td>
<td></td>
</tr>
<tr>
<td valign='top'><strong>Content: </strong></td>
<td></td>
</tr>
<tr>
<td><textarea name="content1" id="content1"/><?= stripslashes($row['page_content']) ?></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'content1',
{
customConfig : 'admin_custom_ckeditor.js'
});
</script>
</td>
</tr>
</table><br />
<table>
<tr>
<td><input class="btn" type='submit' value='Save Changes' /><input type='hidden' value='<?= stripslashes($row['id']) ?>' name='id' /><input type='hidden' value='1' name='submitted' /></td>
<td><input type="button" name="Cancel" onclick="window.location='?action=page&pID=<?= $encrypt->encode($row['id']); ?>'" value="Clear Changes" /></td>
</tr>
</table><br />
</form>
and the data in the ckeditor field:
<form action="FormToEmail.php" method="post" name="contact"> <p> <input name="name" size="40" type="text" value="Name" /></p> <p> <input name="phone" size="40" type="text" value="Phone" /></p> <p> <input name="email" size="40" type="text" value="Email" /></p> <p> <textarea cols="40" name="message" rows="10"></textarea></p> <p> <input name="submit" type="submit" value="Submit Form" /><input name="clear" type="reset" value="Clear Form" /></p> </form>
I can't seem to figure out what I'm doing wrong
