• 19.12.2025, 10:45
  • Register
  • Login
  • You are not logged in.

 

Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

The_Falk

Full Member

HTML code Problem

Wednesday, November 26th 2003, 3:31pm

Hi Leute,
hab da mal ne kleines Problem und zwar wenn ich per textarea einen Text übertrage also Beispielsweise Susi sagt:"Hallo" Passiert folgendes vor jedes " wird ein \ gesetzt also sieht das hinter her so aus: Susi sagt:\"Hallo\". Was mach ich falsch???
Hier der Code(auch PHP vorhanden):

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
 if($_GET['stat']==0){
  echo '
   <h1 style="font-family:Comic Sans MS;color:#0000CC">Geschäftliches editieren</h1>
   <form action="index.php?site=AdminMenu&menu=geschaftledit&stat=1" method="post">
    <p align="left" valign="top" style="font-family:Comic Sans MS;font-size:11pt;font-weight:bold;color:#0000FF">
     <textarea name="mytext" cols="60" rows="20">H"H"H"H"H"H"</textarea><br>
     <input type="button" name="Verweis" value="Abbruch" onClick=self.location.href="index.php?site=AdminMenu">         
     <input type="submit" value="weiter >">
    </p>
   </form>
  ';
 }elseif($_GET['stat']==1){
  $filename="TXTData/geschaftl.txt";
  $file=fopen($filename,"w");
  fwrite($file,$_POST["mytext"]);
  fclose($file);
  echo $_POST["mytext"];
  echo '
   <h1 style="font-family:Comic Sans MS;color:#0000CC">Fertig</h1>
   <form>
    <p style="font-family:Comic Sans MS;color:#0000FF;font-weight:bold">
     Der Text wurde editiert<br>
     <br>
     <input type="button" name="Verweis" value="Zurück zum Menü" onClick=self.location.href="index.php?site=AdminMenu">
    </p>
   </form>
  ';
 }
?>
[img]http://www.drichardt.de/clix/clixbutton.php?id=520[/img]

Chewy

Moderator

Re: HTML code Problem

Wednesday, November 26th 2003, 3:42pm

software...

crushcoder

God

Re: HTML code Problem

Wednesday, November 26th 2003, 3:46pm

schau dir mal die funktionen:
StripSlashes
StripCSlashes
htmlentities
an

und was die string funktionen sonst noch hergeben ;)
Gott hat die Welt ja nur in sieben Tagen erschaffen können, weil es keine installierte Basis gab.

The_Falk

Full Member

Re: HTML code Problem

Wednesday, November 26th 2003, 3:57pm

Cool, Danke. Hab ich vorher net gefunden. Jetzt funzt es. Thx
[img]http://www.drichardt.de/clix/clixbutton.php?id=520[/img]