hab mir gerade ein seperates formular zur eingabe von text für meinen blog gebastelt, allerdings ein kleines formatierungsproblem.
ich gebe den text ganz normal in ein textfeld ein, der inhalt wird dann an mein script geschickt, und letztlich in eine txt datei geschrieben. die textdatei wird dann über den PHP befehl include() innerhalb eines html dokuments angezeigt.
jetzt ist es aber leider aus layout-technischen vorgaben notwendig, dass immer wenn ich einen eintrag in meinen blog schreibe, zuerst das datum und die uhrzeit von einer rahmenlinie unterstrichen werden, welche wiederum in einem <div>-tag definiert ist.
wenn ich jetzt aber meinem script sage dass die ausgabe, wenn der text in die txt-datei geschrieben wird, diesen <div>-tag beinhalten soll, bekomme ich automatisch den fehler.
zur leichteren erklärung, hier ist die ausgabe in meinem script:
--
The problem with America is stupidity.
I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?
----
Arguing with the moderators is like shaking your fist at God. There's nobody there; and if there is, he's not listening. And if he's listening, all you're doing is pissing him off.
Öhm, du musst Anführungszeichen (") in einem String escapen (\"), das ist dir schon klar? (Das sagt übrigens auch die Fehlermeldung mehr oder weniger)
(WIe man am Syntax-Highlighting sehen kann, gehört line nicht in den String)
das kommt davon, wenn man sich keine fehlermeldungen durchliest
THX!
--
The problem with America is stupidity.
I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?
----
Arguing with the moderators is like shaking your fist at God. There's nobody there; and if there is, he's not listening. And if he's listening, all you're doing is pissing him off.