0

I want to echo the value of the textarea.

I've tried :

  • Changing method="POST" to method="post"referring to action="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>
Mohd Abdul Mujib
  • 13,071
  • 8
  • 64
  • 88

1 Answers1

0

XAMPP typically runs Apache on port 80 – Jay Blanchard manually changing the default portnumber to 80 in phpstorm solves the issue.