Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted
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:

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...