Store javaScript variable value in PHP variable -


how can have javascript variable value in php variable within same page??

i have javascript variable have json string , want store in php variable can store database. possible??

you should write php page accepting json using post , save database.

in javascript when ready save json, send json php page using ajax. way save client side data without using forms.

as explained in answer

send json data javascript php?

or if form can refer answer submit serialised data html form

how pass javascript variables php?


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -