PHP Classes

html tags

Recommend this page to a friend!

      AJAX Edit In Place  >  All threads  >  html tags  >  (Un) Subscribe thread alerts  
Subject:html tags
Summary:using html tags like img
Messages:1
Author:Excentric
Date:2006-05-31 12:22:21
 

  1. html tags   Reply   Report abuse  
Picture of Excentric Excentric - 2006-05-31 12:22:21
Thanks for this class!
You can use html tags like <img src="images/logo.gif"> if you add
stripslashes() to example.php and edit.php.

example.php line 16/17
$codeToBeEdited = stripslashes(file_get_contents('text.txt'));
$codeToBeEdited2 = stripslashes(file_get_contents('text2.txt'));

edit.php
in both if statements:
if(fwrite($fp, $content)) {
echo stripslashes($content);

Kind regards
Jeroen Wit