I tried it it woulnt work right... But I changed it.
I tried it it woulnt work right... But I changed it.
Ok its up but there is an error here is the add.php code...
PHP 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="forcehtmlmode('textareaname');">
<textarea id="textarea1" name="test1" style="height: 170px; width: 500px;">
<?php
if ($file = @file_get_contents("comments.phpdata")) {
echo $file."\n";
}
else {echo "Sorry, But your page is blank";}
?>
</textarea>
<script language="javascript1.2">
generate_wysiwyg('textarea1');
</script>
</p>
<p>
<input type="submit" id="button" />
</p>
</form> <a href="index.php">Back</a>
</div>
</body>
</html>
You've got one } too many.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
what?
The red brace has no matching opening brace.Code:<?php if ($file = @file_get_contents("comments.phpdata")) { echo $file."\n"; } else {echo "Sorry, But your page is blank";} ?>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
well I took it out and it says "
Parse error: parse error, unexpected $ in /home/www/benslayton.awardspace.com/add.php on line 32" so apparently its supp. to be there.
Ok I fixed it. the WYSIWYG editor kinda works but the it writes the actual code, and not like bold or color red etc.... Need help.![]()
![]()
huh?
The wysiwyg editor is supposed to be used on your site so you can use it's functions and it will sent to the next page the code. (Use my fix to make it work if you're in code view instead; otherwise it will just sent as text, not code... hard to explain).
If you choose a color or bold in the editor, it will send as code, like <strong>something</strong> and you just need to implement it on the next page, like you were doing before, where the line break became a space.
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
I tried your fix from the sticky under DD scripts right, and it will not show the Editor at all. Maybe Im not understanding something.![]()
Probably.
I think I made it pretty clear in that thread.... not sure what else to say.
Remove/reset it to where it works in the default way, then maybe I can help with the changes I made.
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