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:
<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
$comment = ' ';
<form name = "SentimentForm" method = "POST" action=>
Input text: <textarea name ="ftext" rows = "10" cols = "50"><?php $comment = $_POST['ftext']; ?></textarea>
<?php echo $comment; ?>
<input type= "button" value = "Send" name = "btn1" onclick="sentiform.php" >
hope that someone here can guide me to my mistake.