Form submission combined with ajax?

clipboard.png

formajax

clipboard.png

clipboard.png

sendcodephone_numNone
url

clipboard.png


Brother, take a look at it


is your request body request.POST always empty? It is recommended that the front end pass a fixed parameter. If this is the case, the request information may not be in the request.POST. Add the request header information "Content-type": "application/x-www-form-urlencoded"

to the ajax.

it is recommended to debug problems with IDE. If the browser reports no error, the request is successful, and not all the data requested by ajax is obtained through request.POST.


enter a fixed request header in the header parameter of ajax, such as

such as {Content-Type:application/json;chartset=utf-8}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30b01-2aa7a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30b01-2aa7a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?