Нужен Ваш совет.
Не получается открыть ссылку как target = ' _blank' ,
foreach ($_REQUEST['sel'] as $ids) { $sqlQuery = "SELECT f1360, f1682 FROM ".DATA_TABLE."109 WHERE id='$ids' "; $result = mysql_query($sqlQuery) or die(mysql_error()); $row = mysql_fetch_array($result); $str = $row['f1360']; $match = $row['f1682']; } $url = 'http://www.testt.ru/stat/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.7.62 Version/11.00"); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_REFERER, "http://tt.ct/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 3); curl_setopt($ch, CURLOPT_POSTFIELDS, "url=http://$str&password=$match"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $result = curl_exec($ch); curl_close($ch); echo $result; exit;
Заранее спасибо!