Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.