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

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -