Wait I think I just found it. In your fix I was copying and pasting the fix which had "[something]" something to this effect to save on space. Let me change that. I'll tell you how it works out.![]()
![]()
![]()
Wait I think I just found it. In your fix I was copying and pasting the fix which had "[something]" something to this effect to save on space. Let me change that. I'll tell you how it works out.![]()
![]()
![]()
Alright. Glad it's working.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Wait no its not working. Here is my codes.....
*index
*add.phpPHP Code:<html>
<head>
<title>Comment Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div align="center">
<div align="left">
<table width="80%" border="" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
<?php
if ($file = @file_get_contents("comments.phpdata")) {
echo $file."\n";
}
else {echo "Sorry, but no comments were found.";}
?>
</td>
</tr>
</table>
</div>
<p align="left"><a href="add.php">Add Comment</a></p>
</div>
</body>
</html>
*Sent.phpPHP Code:<html>
<head>
<title>Add Comment Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript" src="http://www.bellsouthpwp2.net/c/h/christwebs/WYSIWYG/wysiwyg.js">
</script>
</head>
<body>
<div align="center">
<p><font size="+1">Add Comment Demo:</font></p>
<form name="form1" method="post" action="sent.php" onSubmit="formatText('ViewText','comment');">
<textarea name="comment" id="textarea1" cols="60" rows="10"><?php
if ($file = @file_get_contents("comments.phpdata")) {
echo $file."\n";
}
else {echo "Sorry, But your page is blank";}
?></textarea><br>
<script language="javascript1.2">
generate_wysiwyg('textarea1');
</script>
<input type="submit" value="submit">
</form>
<a href="index.php">Back</a>
</div>
</body>
</html>
Attachment 365PHP Code:<?php
$filename = "comments.phpdata";
if ($name = stripslashes($_POST['comment'])) {
$comment = str_replace("<","<",$comment);
$comment = str_replace(">", ">", $comment);
$file = @fopen($filename, "w+");
@fwrite($file, $comment);
@fclose($file);
$message = "Your comment was successfully added.<br>Redirecting to index.php";
}
else {
$message = "You either entered no data or it was entered incorrectly.<br>Redirecting to index.php";
}
?>
<html>
<head>
<title>Comment Added Demo</title>
<meta http-equiv="refresh" content="3;url=index.php">
</head>
<body>
<div align="center">
<p><font size="+1">Comment Added Demo:</font></p>
<?php echo $message; ?>
</div>
</body>
</html>
Maybe you might know what the problem is by looking at these. Please dont give up.
Edit:http://benslayton.awardspace.com
Er... try using this php code instead of what is there right now:
Note: Yes, remove:PHP Code:<?php
$filename = "comments.phpdata";
if ($comment = stripslashes($_POST['comment'])) {
$file = @fopen($filename, "w+");
@fwrite($file, $comment);
@fclose($file);
$message = "Your comment was successfully added.<br>Redirecting to index.php";
}
else {
$message = "You either entered no data or it was entered incorrectly.<br>Redirecting to index.php";
}
?>
$comment = str_replace("<","<",$comment);
$comment = str_replace(">", ">", $comment);
Last edited by djr33; 06-07-2006 at 04:28 AM.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Naw, that doesnt work either. Any other Suggestions?
I edited, changing a couple things. Make sure you have the newest version.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Ok your edit above did work. Thanks!!!![]()
One other problem It wont let me add color to the back, text, etc. (to all the popups) any sugg. there?![]()
Popups?
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Yea, when you click on the background color button, the font color button, the hyperlink button.... They open up popups. But doesnt change the color.
I just tried quotes.
I also edited (after I posted the last time).... 'cause I figured out what was wrong.
change the if line to:
if ($comment = stripslashes($_POST['comment'])) {
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Bookmarks