I want to post data to a php using ajax. The php store the info to mysql database.
i have this:
Global text: ""
Global number: 0
Global email: ""
The globla variables are the text of the respective text field.
On button clicked - action - Ajax send "name=name&phone=phone&email=email" to localhost method "POST"
But when i look to my db i see this: name 0 email (the 0 is because the field is int)
How can i send variables through ajax?