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 7838 Status Contributor - May 15, 2012 at 06:57 AM
AssassinTourist Posts 7838 Status Contributor - May 15, 2012 at 06:57 AM
Related:
- How to make site editable
- How to edit photos in snapchat - Guide
- How to download minecraft bedrock edition on pc for free - Download - Sandbox
- How to download minecraft java edition for free - Download - Sandbox
- How to edit video in windows media player - Guide
- How to edit image in google docs - Guide
1 response
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 :
And you have to change the value of mode when needed.
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.