I want to echo the value of the textarea.
I've tried :
- Changing
method="POST"tomethod="post"referring toaction="anotherpage.php" - Changing the name
The code seems to work correctly with GET request.
So i'm out of ideas.
My Code:
<?php
if(isset($_POST["name"])){
$test= $_POST["name"];
echo $test;
}
?>
<form action="welcome.php" method="POST">
<textarea id="welcome1" name="name" cols="60" rows="6"></textarea>
<br><br><input type="submit" value="submit">
</form>