How do I get the value from the form into a string and give it back to the background?
Reply content:
How do I get the value from the form into a string and give it back to the background?
First, the GET
request cannot be passed directly to the JSON, if it is POST
, and PUT
so on request body request, need to Content-Type
set to appliaction/json
, then body
can plug array/object.
The name of the form is set to a uniform name, such as name[], so that the $_post[name received in the background of PHP] is an array
Cannot be uploaded into the background after stitching into a string?
Form label is method= "POST"
$_post[' P_name ' is an array
Format of the general storage database:
1. JSON
2. The array is converted or spelled into a string.
3, the string format of the direct storage array. (Phpcms do so)
Need to know how the specific business will be stored