I used textarea to submit a large amount of data
I initially chose mediumtext as the field type, and the data was lost
Later I changed it to longtext, but the data was still lost,
and I found that the amount of data submitted to the database by mediumtext was the same,
and has not increased. How to solve it?
You only need to use the following method under asp
Copy the code The code is as follows:
Sub Content()
Dim i,sContent
'Get the submitted data
' It is said that it can automatically process large forms , use a loop, otherwise content greater than 100K may not be retrieved. The limit for a single form item is 102399 bytes (about 100K), which is subject to discussion. . Refer to an editor. .
' Start getting value-----------------
sContent = ""
For i = 1 To Request.Form("d_content").Count
sContent = sContent & Request. Form("d_content")(i)
Next
' End value-----------------
End Sub
The above introduces the solution to the loss of large amounts of data submitted by textarea under asp and php, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.