with 10 times with one click? @JustAnotherVagueAcronym
You can get the value in a variable an iterate a for 10 times
Weird question but ok. Here's my two cents on two of the ways you can do it: 1. Ajax. Trigger the JavaScript POST function 10 times via a loop, the loop triggered by clicking the element at the element's onclick attribute. 2. Use GET method to pass the data to an invisible iframe element created in JavaScript. Visit the link + the GET paramaters. That way you can loop that visit 10 times, after each 'visit' is done, detected through the iframe.onload listener as the trigger for the next iteration, and know when the loop is done. Though you need to modify your PHP file then. It's also possible to make it POST still in the iframe but you can search that. This is long already to type out.
Обсуждают сегодня