View Single Post
Old 07-06-07, 10:00 AM   #1
Join Date: Mar 2004
Posts: 15,486
Default Storing Text Area into MySQL Database...

i created a <TEXTAREA> to allow users to enter comments. i want to store this in the database. my questions are:

1. what type of field should it be? varchar(MAX)?
2. what is the maximum length of the column in the database? i want to limit the text area so i can prevent users from entering too much text
3. how do i store the text from the text area into the database? what value do i reference? is it just like a normal text type input?

heres what my code looks like for the textarea:
	       <td colspan="2" align="center"><TEXTAREA NAME="Comments"       
                 ROWS="8" COLS="100"  
ViN86 is offline   Reply With Quote