PHP won't echo out the $_POST ...

Posted by user296516 on Stack Overflow See other posts from Stack Overflow or by user296516
Published on 2010-04-26T11:28:45Z Indexed on 2010/04/26 11:33 UTC
Read the original article Hit count: 561

Filed under:

Hi guys, got a small problem, this code

echo '<input name="textfield" type="text" id="textfield" value="Roger" />';
echo 'Hello, '.$_POST['textfield'].'<br>';

should echo out "Hello, Roger", as roger is the default value, yet it gives out only "Hello, " and nothing else. Any suggestions?

Thanks!

© Stack Overflow or respective owner

Related posts about php