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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -