https://www.php-resource.de/forum/php-developer-forum/1549-php-js-problem