Thanks for your help.
Actually what I am trying to do is:
I am trying to create a PHPEditor by using a file name myphpeditor.php
you can my sample work at this address
http://backupinfo.port5.com/myphpeditor.php I know it a bit danger to do cuz
it allow cracker to crack my site easily but my purpose is to get a quick
and easy way to learn and test PHPcode locally.
To use http://backupinfo.port5.com/myphpeditor.php first give a name and
enter your php code when you finish click on save to preview click on
preview but don't click it still error I haven't fix it yet so to test you
need to use address like this:
http://backupinfo.port5.com/your_file_name.php
It work fine but the problem is when I try to write code like form which
require something like <textarea> I will be in trouble with preview source
code in <textarea>
Please apollogize for my long message.
Regards all,
and Besh Wishes
Kun
----- Original Message -----
From: "Christopher Scollo" <scollo@t...>
To: "professional php" <pro_php@p...>
Sent: Tuesday, August 14, 2001 2:53 PM
Subject: [pro_php] Re: <Textarea> in <Textarea>
> Use the htmlspecialchars() function to display your output:
>
> http://www.php.net/manual/en/function.htmlspecialchars.php
>
> Like this:
>
> echo ('<textarea>' . htmlspecialchars ($userdata) . '</textarea>');
>
> You should also get to know the addslashes() and stripslashes() functions
> for put data in and out of a database.
>
> Hope this helps.
>
> -- Christopher Scollo
>
>
>
> > --- Nikolai Devereaux <yomama@u...> wrote:
> > The error is pretty obvious -- you're not performing
> > any cleanup or
> > validation on your input. Any textarea text you
> > type is just THAT, it's
> > just text. When your browser tries to render all
> > that, the </textarea> tag
> > that you typed in and are now trying to display is
> > rendered by the browser
> > as the matching textarea tag that began the block.
> >
> > The simplest thing to do in your situation is
> > replace all < chars with <.
> >
> > Nik
> >
> >
> >
> > > -----Original Message-----
> > > From: Sokun Chorn [mailto:sokunxp@g...]
> > > Sent: Monday, August 13, 2001 6:47 AM
> > > To: professional php
> > > Subject: [pro_php] Re: <Textarea> in <Textarea>
> > >
> > >
> > > well have you try my code yet.
> > > if you did I would like you to enter copy text
> > bellow and put it
> > > paste it in
> > > the page and submit see what happen.
> > >
> > > <textarea></textarea>
> > >
> > > After submit I wishes to see <textarea></textarea>
> > in my
> > > <textarea> but what
> > > I get only <textarea> and I lost </textarea>
> > >
> > > Can you get me?
> > > Sorry if you can't.