Re: html entry within XML "database"
| From: | Chris Earle | Date: | Mon, 22 Jul 2002 05:50:55 +0000 |
| Subject: | Re: html entry within XML "database" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108822@lists.php.net to get a copy of this message | ||
You can of course use htmlspecialcharacters (check php manual if you don't
know what this is) and then it will kill every thing that generates errors.
"William S." <wstan@xs4all.nl> wrote in message
news:20020713123632.GA26428@xs4all.nl...
> I am experimenting with using an XML file as a
> database. One of the things I do is provide
> a way of adding records to the database by an
> html form.
>
> This seems to work out well so far unless one
> of the fields in a record contains an html
> reference. The result is a Sablotron parse error.
>
> What is the best way around this? Should I
> validate the form before it is submitted so that
> html references are rejected? How would I do this?
>
> --
> Bill
> Amsterdam, NL