Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- field x (dayx) recive = 03
- field x (yearx) recive = 2008
- field y (dayy) recive = 09
- field y (yeary) recive = 2008
- testar(2008/03);
- testar(2008/04);
- testar(2008/05);
- testar(2008/06);
- testar(2008/07);
- testar(2008/08);
- testar(2008/09);
- <input name="dayx" type="text" style="width: 5%; text-align: center;" value="03">
- <input name="yearx" type="text" style="width: 5%; text-align: center;" value="2008">
- <input name="dayy" type="text" style="width: 5%; text-align: center;" value="09">
- <input name="yeary" type="text" style="width: 5%; text-align: center;" value="2008">
- <?php
- if(isset($_POST['lista']) && ";")
- {
- separar(trim($_POST['lista']), ";");
- }
- function separar($lista, $delimitador)
- {
- $ab = split("n", $lista);
- $cb = count($ab);
- for($x = 0; $x < $cb; $x++)
- {
- list($name, $year, $day) = split("\".$delimitador, $ab[$x]);//magic happens
- testar($name, $year, $day);//magic happens
- flush();
- ob_flush();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement