Join
the community
Sign-up
Ask a question Report

How to make site editable

linuz_noobq2m 2Posts Friday January 6, 2012Registration date January 6, 2012Last seen - Latest answer on May 15, 2012 11:57am BST
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
Read more 
1 answer
Answer
+0
moins plus
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.
Add comment
This document entitled « How to make site editable » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.

Not a member yet?

sign-up, it takes less than a minute and it's free!

Members get more answers than anonymous users.

Being a member gives you detailed monitoring of your requests.

Being a member gives you additional options.

Receive our newsletter

health.kioskea.net