I try to use above code to enable the user to verify his entered comment.
If I key some text in the 'new' editor wich is centered, using the TINY MCE option, I have the following problem.
The left part of the centered text, e.g. I key 'test', will show up direct in front of the button 'speichern'. For a centered text 'test' there is 'test">' shown before the button ?
The variable '$kommentar' will be shown correctly in the echo part, but after submitting with above form to save in my SQL fields, there is only '<div align=\' saved.
So, saved '<div align=\' plus shown 'test">' will nearly be the content I want to have ... '<div align=\test">' (missing "center\"></div>)
In the editors html option the following code is schown: <div align="center">test</div> ...
What is going wrong ? I do not understand why the content of $kommentar is splitted ...
In this example, it would move the button to the center of your defined table size. If you wanted, you could even add background colors and you would do that inside the <TD> call before the the element itself.
Now, if you wanted to add a column space, you would first close both the <TD> and <TR> elements and open new ones. For example:
Remember, if you have a form above this one, you need to close it (and the table) before adding this one. The reason being is that you can't (according to compliance rules) nest a form inside another form, nor can you create new form elements (like calling for an input) inside a <tr> or <table> element. (Meaning again, the form call can't come after the table, but rather must be before it).
While I realize that you've probably seen examples to the contrary inside of PHP-Nuke, I want to emphasize that THEY ARE WRONG. Many of those compliance issues have yet to be fixed in Nuke (though I have made my site completely compliant and raven has done a great job working on his here as well.)
thanks for your help, but I think my question was not exact enought ...
I cut the code excamples to be shorter, I know that I can/must use <table> functions to get a layout that fits my needs.
Here is a picture of my entry form:
The values are submitted via POST and shown on the next site:
(Remember, I use TINY MCE and e.g. the center option)
Here you see the 'test">' text in front of the button.
The <form> I use here is completely made with hidden inputs to get the values if 'speichern' is pressed as confirmation.
Therefor I assume that the value of variable $kommentar contains code that cause this error. My question is now, how can I check the input from a <textarea> part ?
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum