Can PHP handle drag and drop interactivity?

I decide if PHP is the best (easiest and most powerful) choice for this task. I have a list of shapes in the panel, and I would like to drag instances of them onto the board as needed. This is not just a drag and drop operation: as soon as the piece is on the board, I still need to change its position and change its size. Also, shapes can be interactive, that is, when I click on a circle, for example, it must do something, but each circle is unique, so it really is an instance of a circle (like OOP).

I use PHP, but my gut feeling tells me that this is not the best language for this. I'm not sure, because I never had to do something like this before, so maybe PHP could do it in the end. I would like to hear feedback from those who are more familiar with PHP and other languages. How can I do this in PHP? If not, which languages ​​will benefit from these hands.

+3
source share
2 answers

PHP is server-side, so drag and drop features are unlikely to be useful. If you can link it to JavaScript (or a specific library) and / or html5, it will work with greater efficiency.

Remy Sharp demo page for drag and drop html5: http://html5demos.com/drag

+4

PHP - . , , - JavaScript.

+3

Source: https://habr.com/ru/post/1760793/


All Articles