Submitting data to the same PHP page from Javascript, without AJAX or forms

I have a php page with some functions for receiving POST data, with page refresh, without AJAX.

Now I have a form with hidden fields that contain my dynamic data, which I submit with JS, for example: document.my_form.submit();

Can I send data without using a form?

Basically, I want to send an array of URLs from a list with thumbnails, so my function iterates over the list and masses them into arrays.

0
source share
3 answers

This day should be approximately 2000 characters:

http://www.boutell.com/newfaq/misc/urllength.html

+1
source

, POST AJAX .

0

you can use get instead of post, but it looks like the url will be pretty dirty. if you do not mind ajax, I would be happy to elaborate on the answer.

0
source

All Articles