How to make site editable

Closed
linuz_noobq2m Posts 2 Registration date Friday January 6, 2012 Status Member Last seen January 6, 2012 - Jan 6, 2012 at 12:07 PM
AssassinTourist Posts 5710 Registration date Monday January 16, 2012 Status Contributor Last seen February 29, 2024 - May 15, 2012 at 06:57 AM
Hello,

I am web developer for some website. It is from the olden times, so it has all HTML files, no PHP/JavaScript/etc. I know PHP, MySQL and a little bit of JavaScript. Is there any thing that I can use to transform this website into an editable website (like google sites)? I want to let some users edit the website, and they dont know a thing about HTML/(anything).

So basically, I just want to know a way to let others edit it, and hopefuly I can achieve this using php/mysql.

Thanks

1 response

AssassinTourist Posts 5710 Registration date Monday January 16, 2012 Status Contributor Last seen February 29, 2024 2
May 15, 2012 at 06:57 AM
Hello !
How I see people do this :

You have a variable named mode (for ex.) which can be "READ" or "EDIT".
You have a form like this :
<form...>
  <?php if (mode == "READ") {
    echo "blablabla";
    echo "<input type='button' value='Edit form' />"
  } else if (mode == "EDIT") {
    echo "<input type='text' value='blablabla' />";
    echo "<input type='button' value='Save form' />"
  } ?>
</form>

And you have to change the value of mode when needed.
0