value from child page to mother
Posted: Thu Sep 01, 2005 4:45 am
i have a child code here
upon filling up the form(selecting the date), i want its value to pass to the mother page....i know it can be done through javascript but i have little knowledge of javascript...i hope you can help me guys...thanks in advance 
( JAM | Moved )
Code: Select all
//months array
$months = array (1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
//dropdown
echo '<select name="startmonth">';
echo "<option value=\"\">Month</option><br>";
foreach ($months as $key => $value)
{
echo "<option value=\"$key\">$value</option>\n";
}
echo '</select>
<select name="startday">';
echo "<option value=\"\">Day</option><br>";
for ($day = 1; $day <= 31; $day++)
{
echo "<option value=\"$day\">$day</option>\n";
}
echo '</select>
<select name="startyear">';
echo "<option value=\"\">Year</option><br>";
$year = 2005;
while ($year <= 2010)
{
echo "<option value=\"$year\">$year</option>\n";
$year++;
}
echo '</select>';( JAM | Moved )