Forum Moderators: coopster

Message Too Old, No Replies

<textarea>

         

yllai

2:42 am on Apr 4, 2006 (gmt 0)

10+ Year Member



hi, the following is my php code for a form to subit data from a textbox

"
echo"<td colspan=\"3\" valign=\"top\"><textarea wrap=\"virtual\" cols=\"50\" rows=\"8\" name=\"addr\" >Type address here.</textarea></td>";
"
But, when the data submitted to my database, it included all the html tag such as <div>, &nbsp;...so how to I just subit plain text to my database? Anyone can help?

garyr_h

5:05 am on Apr 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We need a little more information.

What does your page that it posts to looks like? And what div's are you talking about? I don't see any...

yllai

6:05 am on Apr 4, 2006 (gmt 0)

10+ Year Member



It is just a normal form, like the feedback form, which have few text box and a list menu (address) with multi lines. So, when user fill in the form and submit, the data will be send to my database. Well, when I browse with my database table, the data for address also attched with some HTML tags such as <div> <br>...that means the HTML tags also store in my database. What I want is, just store the address only (in plain text).

Any idea?

Habtom

8:03 am on Apr 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The code seems fine to me. You mentioned div so the code might not be the one the exact codes which are creating problem

Why it is saving your divs and tds is could be that you are putting those tags between the tagas <textarea>in this area</textarea>.

You could check them out.

Habtom