Question Locked

PHP interacting with html

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know how I can get the value of an html textarea and encode it in a session object in php?

3 replies

by thumbsup2

Use the ID and NAME attributes in the textarea field. You can then access the variable using either _GET or _POST, depending on how you're submitting your form.

by jiminpa

I'm going to prequalify the following statements by saying I am a PHP amateur. I normally use vbscript but for reasons that are somewhat irrelevant that is not an option this time.

The textarea is not contained within form tags. Does it have to be? I did write one simple PHP app before using $_POST so I am some what familiar with what you are referring to. I guess I'm having a a difficult time making the assimilation between what I do in vbscript or even javascript with what I need to do in PHP to access the data.

If I were to say in vbscript I would do something like textbox1.text to get the text or in javascript I would do document.getElelmentById('id'').value to get the same data... how would I do that in PHP?

Am I making any sense?

?:|

This discussion is closed to new replies.