verdrm Posted October 6, 2007 Share Posted October 6, 2007 I am working on a simple PHP page that can allow me to work on a school paper with someone else and make edits. Basically a text area will echo the current text data from MySQL that we input, and we can update the changes. I would like to show the revised parts of the text in a different color, but I do not know how to do that. Everything should echo or print into the same text area. Does anyone have any suggestions? To expand on my idea, does anyone know how to show different revisions and undo them like Wikipedia? Quote Link to comment https://forums.phpfreaks.com/topic/72050-revision-system/ Share on other sites More sharing options...
kernelgpf Posted October 6, 2007 Share Posted October 6, 2007 After you submit the form, set a variable with the information in each, and below in the form fields, add something similar to this: <form method=post action=school.php> Title: <input type=text name=title <?php if($titlepassed != ''){ print " value=$title"; } ?> > But for each field. Just test if it's already been submitted, if so, add the "value" part, and it'll fill in the text boxes. Quote Link to comment https://forums.phpfreaks.com/topic/72050-revision-system/#findComment-363095 Share on other sites More sharing options...
kernelgpf Posted October 6, 2007 Share Posted October 6, 2007 Oh.. wait. I thought you were asking something else. Sorry, dunno how to do that. Good luck finding it, though. =P Quote Link to comment https://forums.phpfreaks.com/topic/72050-revision-system/#findComment-363096 Share on other sites More sharing options...
verdrm Posted October 7, 2007 Author Share Posted October 7, 2007 Nobody has any idea at least how to go about this? Quote Link to comment https://forums.phpfreaks.com/topic/72050-revision-system/#findComment-363636 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.