${$value.'_red'}
, я конечно не senior, но не видал такого... $apiDecode = json_decode($url,true);
${$value.'_red'} = $apiDecode['.....'][....'];
${$value.'_red'}
foreach($head $value)
xhr = new XMLHttpRequest();
function getXMLHttp(){
if (window.XMLHttpRequest) { return new XMLHttpRequest(); }
return new ActiveXObject('Microsoft.XMLHTTP');
};
function SendForm(form) {
event.preventDefault();
var formdata = new FormData(form);
xhr = getXMLHttp();
xhr.open('POST', $(form).attr("action"), true);
xhr.send(formdata);
xhr.onreadystatechange = function () {
if(xhr.readyState == 4) {
console.log(xhr.response);
}
};
};
...<form onsubmit="SendForm(this)" action="..." и тд...>...
xhr.addEventListener('abort', function(){
...
});
abort = progress, load, error и тд... <select>
? $link = $driver->findElement(
WebDriverBy::id('id')
);
//$link->click();
$link->getAttribute('innerHTML');
print_r($link);
там еще js может попасть