Passing variable from javascript to php without using window.location -
I am creating a text box by clicking the Add Dynamically button. In this, I want to increase a count variable when click the add button. How can I get this count value in my PHP file? I have tried the window, but it is not working. My code is:
& lt; Script & gt; Var counter = 1; Generate function () {var count = counter; Answer:
in the php file
$ count_val = $ _GET ['js_var'];
Comments
Post a Comment