Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<form action=\"tic.php\" method=\"post\" name=\"edit_form\">\n";
- echo "<table>\n";
- echo "<tr>\n";
- echo "<td width=100px>Список</td><td><textarea name=\"name\"></textarea></td>\n";
- echo "</tr><tr>\n";
- echo "<td colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"submit_add\" class=\"buttons\" value=\"Проверить\"/></td>\n";
- echo "</tr></table></form>\n\n";
- if($_POST['submit_add']){
- $arr = explode("\n", $_POST['name']);
- echo "<table>";
- echo "<tr><td>url</td><td>ТИЦ</td></tr>";
- for ($i = 0; $i < count($arr); $i++) {
- echo "<tr><td>".$arr[$i]."</td><td><a target=\"_blank\" href=\"http://yaca.yandex.ru/yca/cy/ch/www.".$arr[$i]."/\"><img src=\"http://yandex.ru/cycounter?http://".$arr[$i]."/\"></a></td></tr>";
- }
- echo "</table>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment