<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());
}
Thu, 07/24/2008 - 20:47
#1
