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
Comments
Post a Comment