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
AssassinTourist Posts 5710 Registration date Monday January 16, 2012 Status Contributor Last seen February 29, 2024 - May 15, 2012 at 06:57 AM
Related:
- How to make site editable
- How to download minecraft bedrock edition on pc for free - Download - Sandbox
- How to download minecraft java edition for free in pc - Download - Sandbox
- How to edit time in whatsapp - Guide
- How to edit dino game - Guide
- What is right to left editing support on gmail - Guide
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
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 :
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.