Guest User

Untitled

a guest
Mar 28th, 2013
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2.  
  3. echo "<form action=\"tic.php\" method=\"post\" name=\"edit_form\">\n";
  4. echo "<table>\n";
  5. echo "<tr>\n";
  6. echo "<td width=100px>Список</td><td><textarea name=\"name\"></textarea></td>\n";
  7. echo "</tr><tr>\n";
  8. echo "<td colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"submit_add\" class=\"buttons\" value=\"Проверить\"/></td>\n";
  9. echo "</tr></table></form>\n\n";
  10.  
  11. if($_POST['submit_add']){
  12. $arr = explode("\n", $_POST['name']);
  13. echo "<table>";
  14. echo "<tr><td>url</td><td>ТИЦ</td></tr>";
  15. for ($i = 0; $i < count($arr); $i++) {
  16. 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>";
  17. }
  18. echo "</table>";
  19. }
  20.  
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment