<?php
//print_r($_POST);
if (!empty($_POST[json_name])) { $json_data = $_POST['json_name'];$json = json_decode($json_data,true); $a = $json['name'];$b = $json['idtime'];
if ($a !== false) {
headers: { "Content-Type":"application/x-www-form-urlencoded" },
<a href="#" onclick="player.loadVideoById('M4ZoCHID9GI', 0);history.pushState('M4ZoCHID9GI', null, 'M4ZoCHID9GI') ;document.title = 'The Weeknd Call Out My Name Official Video';return false"><img src="https://i.ytimg.com/vi/M4ZoCHID9GI/default.jpg" align="right" class="img_class"> ◄ 2The Weeknd - Call Out My Name (Official Video) </a>
var json_upload = "json_name="
получаем и разбираем по
Array ( [json_name] => {"name":"UUsA_vkmuyIRlYYXeJueyIJQ","time":"X2gcLUZ7qnw","c":" собака "} )
if (!empty($_POST[json_name])) { $json_data = $_POST['json_name'];$json = json_decode($json_data,true); $a = $json['name'];$b = $json['idtime'];
if ($a !== false) {
if (isset($json['nextPageToken'])){ $nextPageToken =$json['nextPageToken'];
echo '
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" onload="
var myHead2 = document.getElementById(\'your2\');
var locat =\'<a href=# id='.$b.','.$nextPageToken.' onclick=load();return false > Дальше:'.$nextPageToken.' </a> \';
myHead2.innerHTML = locat;
var myHead1 = document.getElementById(\'content2\');
var date = \'<a href=# id='.$b.','.$prevPageToken.' onclick=load();return false > '.$obnovit.' '.$prevPageToken.' </a> \';
myHead1.innerHTML = date;
;this.parentNode.removeChild(this);
" />
';
};
только лиса onclick="load(event) " если и function load(event) срабатывает.