Slashes bei $_POST

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Slashes bei $_POST

    Hallo Forum!

    Heute ne (glaube ich zumindest ^^) einfache Frage:
    Ich gebe was in 'n Textfield ein, das $_POST lese ich mit PHP wieder aus, so z.B. das hier:

    Eingabe:
    Hello Folks\nRead something about...
    Das hier erhalte ich im PHP:
    Hello Folks\\nRead something about...
    Warum macht es das automatisch? Ich habe nirgens irgend ne Funktion a la addslashes, also warum der zweite slash?

    Danke im Voraus für die Antwort!

    MfG
    Onyx

  • #2
    http://us.php.net/magic_quotes
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Comment


    • #3
      Scheint in letzter Zeit wieder häufig aktiviert zu sein. Zumindest der Anzahl der Suchergebnisse nach.

      get_magic_quotes_gpc

      Comment


      • #4
        Na also das ging ja fix

        Danke, Gruss
        Onyx

        Comment

        Working...
        X