
porta325
-
Posts
73 -
Joined
-
Last visited
Community Answers
-
porta325's post in Close Page and return Value to Previous Page was marked as the answer
https://www.w3schools.com/php/php_ajax_php.asp
You basically return a result from another page without refresh with vanilla JS. The example uses an input but you can use whatever you want to send the request.
https://code.tutsplus.com/tutorials/how-to-use-ajax-in-php-and-jquery--cms-32494
Here is the jquery method. I find it easier to go through.