I'm trying to store the text from my textarea into my php variable, but it seems like it is not working as i wish too. and it shows error in my textarea:
<br />
<b>Notice</b>: Undefined index: ftext in <b>C:\Program Files (x86)\EasyPHP-5.3.9\www\sentiform.php</b> on line <b>20</b><br />
sorry that i am not very good in php yet. I am using button, not the input type = "submit" button.
below is my code
<html>
<head>
<title>Test Sentiment</title>
</head>
<body>
<?php
$comment = ' ';
?>
<form name = "SentimentForm" method = "POST" action=>
Input text: <textarea name ="ftext" rows = "10" cols = "50"><?php $comment = $_POST['ftext']; ?></textarea>
<?php echo $comment; ?>
<br/>
<input type= "button" value = "Send" name = "btn1" onclick="sentiform.php" >
</form>
</body>
</html>
hope that someone here can guide me to my mistake.