In asp and php, textarea submits a solution for massive data loss. I used textarea to submit a large amount of data. I started to select mediumtext for the field type. when the data was lost, I changed it to longtext, and the data was still lost, in addition, it was found that mediumtext and mediumtext were submitted to a large amount of data I submitted using textarea.
Mediumtext is selected as the field type and data is lost.
Later I changed it to longtext, and the data is still lost,
In addition, it is found that the data volume submitted to the database is the same as that submitted by mediumtext,
Not added. How can this problem be solved?
In asp, you only need to use the following method.
The code is as follows:
Sub Content ()
Dim I, sContent
'Retrieve submitted data
'The Automatic processing of large forms is said to require loops. otherwise, content larger than 102399 KB may not be retrieved. The size of a single form item is limited to bytes (about KB ), .. See an editor ..
'Start value -----------------
SContent = ""
For I = 1 To Request. Form ("d_content"). Count
SContent = sContent & Request. Form ("d_content") (I)
Next
'End value -----------------
End Sub
Php is generally a special character. for the solution, refer to the following
What special characters are there? Unless you do not escape the quotation marks, you should be able to enter them.
Use get_magic_quotes_gpc to check the value. if it is 1, the POST data will be automatically escaped unless it is processed again. If the value is 0, insert the POST data addslashes. If not, and the value is 1, use stripslashes to convert the escaped data back, directly call mysql_escape_string to escape the data, and paste your special characters into the database if not.
Pipeline I started to select mediumtext for the field type. when data is lost, I changed it to longtext, and the data is still lost. In addition, I found that mediumtext and mediumtext are submitted...