Umwandlung

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

  • Umwandlung

    ich möchte, das ein text aus einem inputfeld genauso ausgegeben wird, wie es der user eingibt. leider wandelt ja das php ein [COLOR=orangered]"[/COLOR] in [COLOR=orangered]\"[/COLOR] um.
    Wie kann cih das verhindern?

    Thx für Antworten!


  • #2
    strip_slashes?
    INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


    Comment


    • #3
      wie meinen?

      Comment


      • #4
        so meinen: $text = strip_slashes($text);
        think before fraging
        h.a.n.d.
        Schmalle

        http://impressed.by
        http://blog.schmalenberger.it



        Wichtige Anmerkung: Ich habe keine Probleme mit Alkohol ...
        ... nur ohne :-)

        Comment


        • #5
          Toll ...

          da kommt dann, wenn ich das $text ausgebe:

          PHP Code:

          Fatal error
          Call to undefined function: strip_slashes() in C:\apache\htdocs\php_edit\index.php on line 29 
          ausgeben tu ichs so:

          PHP Code:
          $php=strip_slashes($php);
          echo 
          $php

          Comment


          • #6
            ein kurzer blick ins manual hätte dir auch verraten, dass der _ weg muss. wir haben auch nicht jeden fkt-aufruf vom syntax her im kopf.
            INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


            Comment


            • #7
              upppps, mach mal den unterstrich weg
              h.a.n.d.
              Schmalle

              http://impressed.by
              http://blog.schmalenberger.it



              Wichtige Anmerkung: Ich habe keine Probleme mit Alkohol ...
              ... nur ohne :-)

              Comment


              • #8
                PHP Code:

                <?PHP
                if($action=="show"){
                echo 
                "<table bgcolor=\"#C0C0C0\" class=\"border\"><tr><td>";
                $php=stripslashes($php);
                echo 
                $php;
                echo
                "
                </td></tr></table>"
                ;
                }
                ?>
                geht nun ...
                ABER ...
                Im Quelltext steht das korrekt drin, aber ausgegeben wird nix ... wieso?

                Comment


                • #9
                  steht in $php auch was drin?
                  INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


                  Comment


                  • #10
                    Original geschrieben von Abraxax
                    steht in $php auch was drin?
                    Nu klar!
                    Das wird per Formular übergeben ... Ich sag ja, im Quelltext steht das ja, aber der gibt nix aus! *grübel*

                    Comment


                    • #11
                      was heisst, dass es im quellcode steht aber nicht ausgegeben wird.
                      hast du noch html-kommentare drum?
                      ist schwarze schrift auf schwarzem hintergrund?
                      INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


                      Comment


                      • #12
                        hört sich nach wirrem html an ..
                        h.a.n.d.
                        Schmalle

                        http://impressed.by
                        http://blog.schmalenberger.it



                        Wichtige Anmerkung: Ich habe keine Probleme mit Alkohol ...
                        ... nur ohne :-)

                        Comment


                        • #13
                          OffTopic:
                          abraxax ned immer psoten, was ich sagen will
                          h.a.n.d.
                          Schmalle

                          http://impressed.by
                          http://blog.schmalenberger.it



                          Wichtige Anmerkung: Ich habe keine Probleme mit Alkohol ...
                          ... nur ohne :-)

                          Comment


                          • #14
                            Benenne mal dein VAr um in $text statt $php, das kann zu Problemen führen!
                            *winks*
                            Gilbert
                            ------------------------------------------------
                            Hilfe für eine Vielzahl von Problemen!!!
                            http://www.1st-rootserver.de/

                            Comment


                            • #15
                              Original geschrieben von schmalle
                              OffTopic:
                              abraxax ned immer psoten, was ich sagen will
                              OffTopic:
                              tipp: schneller werden
                              INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


                              Comment

                              Working...
                              X