Ugh I've been working too much today. Just can't think anymore... and now this is bothering me. Say I had the following JS: for (i = 0; i < elements.length; i++) { alert(elements[i].value); } Code (markup): how could I deal with the elements.value in PHP? I guess, how can I "inline-pass" that variable to some code?
You could also use AJAX if you don't want to spawn a new page instance, but to send the information to the server, you still need to make an HTTP request. http://developer.mozilla.org/en/docs/AJAX:Getting_Started
javascript is serverside so you can use ajax or just echo the whole array somewhere between you script tags
Javascript could be serverside, but usually nobody works with it serverside but only clientside. See wikipedia article about SSJS. Triexa; like said above, you could pass it via GET to a script, you could use AJAX. There is also a possibility to POST data to a script, however I never used that method, so I don't know whether or not it works very well.