Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Problem mit <textarea> und PHP (https://www.delphipraxis.net/29597-problem-mit-textarea-und-php.html)

moritz 11. Sep 2004 15:27

Re: Problem mit <textarea> und PHP
 
so, ausprobiert. geht leider immer noch ned.
Das mit textarea hab ich hinbekommen, mit htmlspecialchars und dann html_entity_encode. jetzt ist mein problem noch, dass " durch \" ersetzt werden.

titus 11. Sep 2004 15:28

Re: Problem mit <textarea> und PHP
 
$text = str_replace('"', '\\"', $text); bzw. stripslashes()


???

moritz 11. Sep 2004 15:29

Re: Problem mit <textarea> und PHP
 
schon klar, allerdings passiert dass dann auch bei \", die so sein sollen

Edit: Ach ne, doch nicht, \" wird ja durch \\\" ersetzt,

titus 11. Sep 2004 15:30

Re: Problem mit <textarea> und PHP
 
sollte da nicht &quot; stehen?

moritz 11. Sep 2004 15:31

Re: Problem mit <textarea> und PHP
 
Juhu, geht alles! Danke!

moritz 11. Sep 2004 15:32

Re: Problem mit <textarea> und PHP
 
Zitat:

Zitat von titus
sollte da nicht &quot; stehen?

Nein, wenn du nen PHP-Code hast, aber wirklich Anfürhungszeichen im Code brauchst (z.B. JS), muss dass sein


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:36 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz