OK, i've done a lot myself now but this has me stuck.
I have a news management page which shows you all the news articles in the news database and has the option to edit or delete them
However, if I choose to edit an item, it takes me to the edit page and everything appears as it should.
But, if I add anything to the it with a ' in (i.e. i'm sure it's ok), OR there is a hyperlink in the text body i.e.
as soon as you press update to save the edit this happens
(i\'m sure it\'s ok)
and
I hope thats clear enough to show whats happening.
How do I solve this? I looked up http://uk3.php.net/strip_tags but their example seems to be associated with constant inserted text.
I have a news management page which shows you all the news articles in the news database and has the option to edit or delete them
However, if I choose to edit an item, it takes me to the edit page and everything appears as it should.
But, if I add anything to the it with a ' in (i.e. i'm sure it's ok), OR there is a hyperlink in the text body i.e.
Code:
<a href="test.php">test</a>
as soon as you press update to save the edit this happens
(i\'m sure it\'s ok)
and
Code:
<a href="\test.php\">test</a>
I hope thats clear enough to show whats happening.
How do I solve this? I looked up http://uk3.php.net/strip_tags but their example seems to be associated with constant inserted text.