I use input format as “PHP Code”…enter PHP code and it looks fine. Next time I go edit it, it removes it all. This is very frustrating.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The WYSIWYG editor may be hiding the PHP because it is not valid HTML, and looks like a tag. Check the Source view and see if the code is still there, but invisible.
For that matter, you should be editing a PHP text field with a plain text editor, not WYSIWYG, because it may be changing “<” to the HTML entity (& lt;) and so on.