izidorg Posted March 4, 2010 Report Share Posted March 4, 2010 Hello, I'm new to WEB design coding. Trying to following some video from the site. Why I cannot display text entered in the html form in PHP? I can successfully display other tags in the same PHP file. The code I'm using is the following: Comments: ... The text entered in the text box and submitted. The form_response.php file handles properly other tags but not the textarea tag. in the form_response.php file the following code gets NULL in the $comments variable. $comments = $_REQUEST['comments']; Any help is appreciated. Quote Link to comment Share on other sites More sharing options...
krillz Posted March 4, 2010 Report Share Posted March 4, 2010 what's up with the colons at the name? name:="comments" skip those and it will work, name="comments" The data from the textarea will then be stored in $_POST['comments'] and you can access it through $_REQUEST['comments'] as well as you just tried. Quote Link to comment Share on other sites More sharing options...
izidorg Posted March 4, 2010 Author Report Share Posted March 4, 2010 what's up with the colons at the name? name:="comments" skip those and it will work, name="comments" The data from the textarea will then be stored in $_POST['comments'] and you can access it through $_REQUEST['comments'] as well as you just tried. Thanks, it worked great form me. Best regards! :cool: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.