1
<form method='POST' id="myform" action='process-input.php'>
    <textarea form="myform" name='inputtext' id='inputtext'></textarea>
    <input type='submit' value='Submit'> 
</form>

The input of inputtext isn't echoed by process-input.php, which looks like this:

echo $POST_['inputtext'];

why?

1
  • Shouldn't that say $_POST['inputtext']? Commented Feb 18, 2014 at 19:16

5 Answers 5

3

it should be

echo $_POST['inputtext'];
Sign up to request clarification or add additional context in comments.

Comments

3
echo $_POST['inputtext'];

you got your underscore wrong

Comments

2

You need to change it to $_POST['inputtext']

Comments

2

Your code is wrong, it should be :

$_POST['inputtext'];

Comments

2

The syntax of PHP post is $_POST,

You need change echo $_POST['inputtext']; instead of echo $POST_['inputtext'];

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.