Jump to content

help on <? include"" ?>


watthehell

Recommended Posts

hi all;

 

i have a reservation page where i included a php calendar, now i want to navigate to next month by pressing next link

<a href="reservation.php?nextmonth=<?=$currmonth+1;?>" class="cal_font_month">>></a>

 

here when i keep calendar.php in href only the calendar opens, so i kept the link to reservation.php

 

but how to get the month and date values, lil confused in that

 

here's my code to show the calendar

 

<?php echo @$_SESSION['mycurrdate']; ?></td>
   <td width="35" align="center" valign="middle" bgcolor="#EB208C" class="cal_font_month" style="background-image:url(images/navigationbg.jpg);"><a href="#" class="cal_font_month">>></a></td>
  </tr>
   <tr>
    <td height="226" colspan="2" valign="top" bgcolor="#EB208C"><?
$id=1;
$month=date("n");
$year=date("Y");
DisplayCalender($id,$month,$year);
ob_end_flush();

 ?>

Link to comment
https://forums.phpfreaks.com/topic/68981-help-on/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.