Hi I have a problem in sending data from php to pdf. I think the only way is to put in a variable the data that will be send to pdf function.
here is the code that i need to put in a php variable..

```
<table width="95%" height="95%">
            <tr>
                <td align="center">
                  <table width="100%" border="0" cellpadding="2" cellspacing="2">
                    <tr align="center">
                      <td colspan="7" bgcolor="#2561cf" style="color:#FFFFFF"><strong><?php echo $monthNames[$cMonth-1].' '.$cYear; ?></strong></td>
                    </tr>
                    <tr>
                      <td align="center" bgcolor="#2561cf" style="color:#FFFFFF"><strong>Sun</strong></td>
                      <td align="center" bgcolor="#2561cf" style="color:#FFFFFF"><strong>Mon</strong></td>
                      <td align="center" bgcolor="#2561cf" style="color:#FFFFFF"><strong>Tue</strong></td>
                      <td align="center" bgcolor="#2561cf" style="color:#FFFFFF"><strong>Wed</strong></td>
                      <td align="center" bgcolor="#2561cf" style="color:#FFFFFF"><strong>Thu</strong></td>
                      <td align="center" bgcolor="#2561cf" style="color:#FFFFFF"><strong>Fri</strong></td>
                      <td align="center" bgcolor="#2561cf" style="color:#FFFFFF"><strong>Sat</strong></td>
                    </tr>

                    <?php 
                        $timestamp = mktime(0,0,0,$cMonth,1,$cYear);
                        $maxday    = date("t",$timestamp);
                        $thismonth = getdate ($timestamp);
                        $startday  = $thismonth['wday'];

                      for ($i=0; $i<($maxday+$startday); $i++) {
                        $day = ($i - $startday + 1);
                        if($day['1'] == '1' || $day['1'] == '2' || $day['1'] == '3' || $day['1'] == '4' || $day['1'] == '5' || $day['1'] == '6' || $day['1'] == '7' || $day['1'] == '8' || $day['1'] == '9'){
                            $day    = '0'.$day;
                        }else{
                            $day    = $day;
                        }
                        $date = $monthNames[$cMonth-1].' '.$day.', '.$cYear;
                        $date2 = $cMonth.'/'.$day.'/'.$cYear;
                        $events = $this->getEvents($date2);
                        if(($i % 7) == 0 ) echo "<tr>\n";
                        if($i < $startday) echo "<td></td>\n";
                        else echo "<td valign='top' align='left' width='50px' height='50px'><div class='".$dateId."' id='".$date."' title='".$date2."' style='cursor:pointer;'>". ($i - $startday + 1) .'</div>'. $events."</td>\n";
                        if(($i % 7) == 6 ) echo "</tr>\n";
                      }  
                     ?>
                  </table>
                </td>
            </tr>
         </table>

```