Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html> <head> <title>datumtest2</title> </hEAD>
- <body>
- <form name="datum" method="Post" action="datumtest2.php?start=1">
- <input type="text" name="date1">date1<br>
- <input type="text" name="date2" >date2<br>
- <input type="submit">
- </form>
- <?
- if($start == 1) {
- $days = floor((strtotime($date2) - strtotime($date1))/86400);
- $count = 1;
- $days_calc = $days;
- for($i = 0; $i< $days_calc; $i++)
- {
- echo $count++." ".$date1." ";
- $help = date("D",$date1);
- if ($help == "Sat" || $help == "Sun")
- $days -=1 ;
- echo $help." <br>";
- $date1 = $date1 +("+1 day");
- //$date1 = strtotime( date("Y-m-d", strtotime("$date1")). " +1 days");
- }
- print("$days Tage vorbei.\n");
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement