ninedoors Posted May 20, 2008 Share Posted May 20, 2008 I have a calendar setup inside an iframe. I would like to add links for the user to be able to move to the next and previous months. I am having trouble passing the variables to the next page when they are activated. I am using Kevin Devens calendar located here:http://keithdevens.com/software/php_calendar Here is the code I am trying to use: This code is inside the page /BigC/content/iframe.php <?php include 'calendar.php'; if (!empty($id)) { $time = strtotime($id . 'month', $month); } else { $time = time(); } $today = date('j',$time); $newmonth = date('Y-m-d', $time); $pn = array('«'=>'/BigC/content/iframe.php?id=-1;month=$newmonth', '»'=>'/BigC/content/iframe.php?id=1;month=$newmonth'); $days = array($today=>array(NULL,NULL,'<span style="color: darkred; font-weight: bold; text-decoration: blink;">'.$today.'</span>')); echo generate_calendar(date('Y', $time), date('n', $time), $days, 3, NULL, 0, $pn); ?> I know the code isn't right but I am having trouble figuring out where to go next to fix it. I am not seeing a work around that I can use. Any help would be great. Forgot to say that I am new to using variables instead a url, I have only done it a few time and those times were basically through cut and paste code. If anyone knows a good spot to read up on it I would appreciate that too. Link to comment https://forums.phpfreaks.com/topic/106518-passing-variables-in-links/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.