Nisha Patel
Problem:
I'd like to serialize my form so that it can be sent to a php file via Ajax. I'm using Bootstrap to validate the form beforehand. Unfortunately, the php code returns an empty array. Bizarrely the debugger seems to show that postData contains the right strings:
Solution:
Don't set contentType and processData as false. Let Ajax handle it by itself. Then you will see the values being read on your controller file.
The else block in the submit event handler is being called. Logging the postData in the script was returning all the values too as you said yourself. The problem is with how you're sending the data.
Suggested blogs:
>5 easy ways to repair the .NET Framework on Windows
>Integrate SASS into the build and consume a UI toolkit
>8 Steps to use Redux Persist in React Native
>How to build an Electron application from scratch
>How to delete duplicate names from Array in Typescript?