Hi,
I have a form in a table like the one below. It is saved in a MySQL database via php, and its function is to send an email. I had an RTF editor implemented before FCK and the exact same thing happened as in FCK when I open the below code and save it again:
the ending form tag '</form>' is moved up immediately after the opening form tag thus rendering the form inoperable. I've tried it dozens of times - the code gets modified when I save. Anybody who knows why, and if there's a remedy for it? For now I just don't resave this part of the code as I can only correct it directly in the db via phpmyadmin.
thanks in advance
<table class="moon_table"><tr><td> <form action="index.php" method="post" name="mail_form" class="mail_form"> </td></tr> <tr><td><br /></td><td><input type="hidden" name="id" value="" /><br /></td></tr><tr><td class="tlabel">Name</td> <td><input type="text" name="name" value="" class="descfield" size="60" /></td> </tr> <tr><td class="tlabel">Email</td><td><input type="text" name="email" value="" class="descfield" size="60" /></td></tr> <tr><td class="tlabel">Subject</td> <td><input type="text" name="subj" value="" class="descfield" size="60" /></td></tr> <tr><td colspan="2"><textarea name="body" class="tarea"></textarea></td> </tr> <tr><td><input type="submit" name="send_mail" value="Send" class="sendbutton" /></td></tr> </form></table>
I have a form in a table like the one below. It is saved in a MySQL database via php, and its function is to send an email. I had an RTF editor implemented before FCK and the exact same thing happened as in FCK when I open the below code and save it again:
the ending form tag '</form>' is moved up immediately after the opening form tag thus rendering the form inoperable. I've tried it dozens of times - the code gets modified when I save. Anybody who knows why, and if there's a remedy for it? For now I just don't resave this part of the code as I can only correct it directly in the db via phpmyadmin.
thanks in advance
<table class="moon_table"><tr><td> <form action="index.php" method="post" name="mail_form" class="mail_form"> </td></tr> <tr><td><br /></td><td><input type="hidden" name="id" value="" /><br /></td></tr><tr><td class="tlabel">Name</td> <td><input type="text" name="name" value="" class="descfield" size="60" /></td> </tr> <tr><td class="tlabel">Email</td><td><input type="text" name="email" value="" class="descfield" size="60" /></td></tr> <tr><td class="tlabel">Subject</td> <td><input type="text" name="subj" value="" class="descfield" size="60" /></td></tr> <tr><td colspan="2"><textarea name="body" class="tarea"></textarea></td> </tr> <tr><td><input type="submit" name="send_mail" value="Send" class="sendbutton" /></td></tr> </form></table>
RE: Why is this HTML modified?
this setup should work:
<form><table>
...
</table></form>
RE: Why is this HTML modified?
Thanks a lot!
RE: Why is this HTML modified?
I have been searching for days, but I have not found a way to keep the editor from modifying current HTML. I really hope there is a way.
Thanks,
Brian
RE: Why is this HTML modified?
Regards,
Mike
RE: Why is this HTML modified?
Therefore, it is not possible for the editor to output non XHTML compliant code.
I was a bit against this at the time for this reason, and I still think an option to not clean the code would be very useful.
RE: Why is this HTML modified?
Hi Ben,
Thank you very much for your reply! I really do not understand why one would make XHTML mode compulsory? - I would like to use this program in a mailing list application I am developing and know most end users will use basic html - for example, I am trying to get the following webpage to display correctly - http://mikesworld.net/800sandiego.htm Any ideas?
Best Regards,
Mike
RE: Why is this HTML modified?
I can assure you <font></font> is NOT XHTML compliant.
RE: Why is this HTML modified?
eg. the tags themselves are not important, but they must be opened/closed in sequence.