Hi All !
First of all, i'm looking for an easy Rich text that can be used in PHP code. I tried to google it and i found this :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<!-- Skin CSS file -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/assets/skins/sam/skin.css">
<!-- Utility Dependencies -->
<script src="http://yui.yahooapis.com/2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script src="http://yui.yahooapis.com/2.8.0r4/build/element/element-min.js"></script>
<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
<script src="http://yui.yahooapis.com/2.8.0r4/build/container/container_core-min.js"></script>
<script src="http://yui.yahooapis.com/2.8.0r4/build/menu/menu-min.js"></script>
<script src="http://yui.yahooapis.com/2.8.0r4/build/button/button-min.js"></script>
<!-- Source file for Rich Text Editor-->
<script src="http://yui.yahooapis.com/2.8.0r4/build/editor/editor-min.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript">
var myEditor = new YAHOO.widget.Editor('msgpost', {
height: '300px',
width: '522px',
dompath: true, //Turns on the bar at the bottom
animate: true //Animates the opening, closing and moving of Editor windows
});
myEditor.render();
</script>
</head>
<body class="yui-skin-sam">
<form action="java2.php" method="POST">
<textarea name="haha" id="msgpost" cols="50" rows="10">
</textarea>
<input type="submit" value="Submit">
</form>
</body>
</html>
Now When i click Submit to go to Java2.php, i can't find the text i wrote in that textarea..Its all blank page !
Lets say i made this inside java2.php
<?php
$haha = $_POST['haha'];
echo $haha;
?>
Sorry, i'm still under learning phase .. I'm not expert or anything, If you guys have any other idea..Share it 🙂 i will appreciate it so much !
Thanks
Ali