Jump to content

Revision System


verdrm

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/72050-revision-system/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/72050-revision-system/#findComment-363095
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.