Well, I got this PHP code:
<?php
unset($anio_seleccionado, $atributo_selected, $cal_date, $content, $day_array, $dia, $dias, $fecha_de_hoy, $i, $linkcalevent, $mes_seleccionado, $meses, $our_datestamp, $temp_birthdays, $temp_events, $tool_birthdays, $tool_events);
$linkcalevent = $mklib_board->forum_link('calendar_event');
$dias = array ('D.', 'L.', 'M.', 'M.', 'J.', 'V.', 'S.');
$meses = array ('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre');
$fecha_de_hoy = getdate();
$mes_seleccionado = intval($_POST['m_m']) ? (checkdate($_POST['m_m'], 1, 2005) ? $_POST['m_m'] : $fecha_de_hoy['mon']) : $fecha_de_hoy['mon'];
$anio_seleccionado = intval($_POST['y_y']) ? (checkdate(1, 1, $_POST['y_y']) ? $_POST['y_y'] : $fecha_de_hoy['year']) : $fecha_de_hoy['year'];
$our_datestamp = mktime(0, 0, 0, $mes_seleccionado, 1, $anio_seleccionado);
$temp_birthdays = $mklib_board->calendar_birth($mes_seleccionado, $anio_seleccionado);
$tool_birthdays = $temp_birthdays[1];
$temp_events = $mklib_board->calendar_events($mes_seleccionado, $anio_seleccionado);
$tool_events = $temp_events[1];
$content = <<<EOS
<form action="http://${_SERVER['SERVER_NAME']}${_SERVER['SCRIPT_NAME']}?${_SERVER['QUERY_STRING']}#cal" name="CalForm" method="post" style="text-align: center"><input type="hidden" name="old_y" value="$anio_seleccionado" /><input type="hidden" name="old_y" value="$mes_seleccionado" /><select name="m_m" onchange="document.CalForm.submit();">
EOS;
And I get this error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in blah on line 27
Line 27 starts with: <form
I have checked the code a thousand times and can't figure out where the error is, :bemused:. Maybe you can help me, 🙁
Thanks, 😉