Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. field x (dayx) recive = 03
  2. field x (yearx) recive = 2008
  3.  
  4. field y (dayy) recive = 09
  5. field y (yeary) recive = 2008
  6.  
  7. testar(2008/03);
  8. testar(2008/04);
  9. testar(2008/05);
  10. testar(2008/06);
  11. testar(2008/07);
  12. testar(2008/08);
  13. testar(2008/09);
  14.  
  15. <input name="dayx" type="text" style="width: 5%; text-align: center;" value="03">
  16. <input name="yearx" type="text" style="width: 5%; text-align: center;" value="2008">
  17. <input name="dayy" type="text" style="width: 5%; text-align: center;" value="09">
  18. <input name="yeary" type="text" style="width: 5%; text-align: center;" value="2008">
  19.  
  20. <?php
  21. if(isset($_POST['lista']) && ";")
  22. {
  23. separar(trim($_POST['lista']), ";");
  24. }
  25. function separar($lista, $delimitador)
  26. {
  27. $ab = split("n", $lista);
  28. $cb = count($ab);
  29. for($x = 0; $x < $cb; $x++)
  30. {
  31. list($name, $year, $day) = split("\".$delimitador, $ab[$x]);//magic happens
  32. testar($name, $year, $day);//magic happens
  33. flush();
  34. ob_flush();
  35. }
  36. }
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement