Jump to content
xisto Community

r0b

Members
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by r0b

  1. Hello everyone, my name is Rob. (obvious huh?) Brief description: This project saves all the content to .txt files, you can edit them with a password that is saved in a .php file. You can edit the content with simply clicking on it (edit-in-place Ajax technology). I'm stuck at 99% of this flat-file (no database - writes to text files) CMS. Here's how it looks like. (password is admin) My problem are <br> tags. I need to make them invisible, to when the user hits enter (new line), it would make the new line, but the <br> tag would be hidden. So far I've tried: $content=nl2br($content);and$content = str_replace("<br>", "\n", $content); and also the code below for outputting the content, but that also didn't help. <?php echo "<pre>"; echo $file1; echo "</pre>";?> I'm really stuck in confusion and don't know what do to next?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.