Ok, so i have successfully made it so i can write some text with the FCK editor and store it into a database, but i am now trying to make it so i can edit the text inside the database.
here is the code i have:
<html> <head> <title>Edit Your Message</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <form action="<?php echo $_SERVER['PHP_SELF'];?><? echo '?title1=$title'?>" method="request"> Title: <input type = "text" name = "Title" value = "<?php echo $title; ?>"> <?php $oFCKeditor = new FCKeditor($title) ; echo "$title!!!"; $oFCKeditor->BasePath = '/MassMailer/fckeditor/' ; $oFCKeditor->Value = $message ; $oFCKeditor->Create() ; ?> <br> <input type="submit" value="Submit" name="SubmitBtn1"> </form> </body> </html> <? if($_POST['SubmitBtn1']) { $title = $_GET['title1']; $newTitle = mysql_escape_string($_POST['Title']); $newMessage = mysql_escape_string(stripslashes( $_POST['$title'] )) ; echo "$title!!!<br>"; $sql = "UPDATE mail SET msg= $newMessage AND title = $newTitle WHERE title = '$title')"; echo $sql; mysql_query($sql) or die(mysql_error()); }