the html is pretty long but here is the complete document
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>agenda</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link href="agenda.css"rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery-1.3.2.js"></ script> <script type="text/ javascript"> $(document).ready(function() { $("button").click(function() { $.post('handler.php', { jaar:$('#jaar').val(), maand:$('#maand').val(), week:$('#week').val() }, do_something) }); }); </script> </head > <body> <div id="bdy"> <div id ="nieuw"> <a href="nieuw.html">Nieuwe afspraak</a> </div> <div id="wijzigen"> <a href="wijzigen.html">Afspraak wijzigen</a> </div> <div id="verwijderen"> <a href="//\\">Afspraak verwijderen</a> </div> <div id="importeren"> <a href="//\\">Importeren</a> </div> <div id="zoeken"> <a href="//\\">Afspraak zoeken</a> </div> <form id="myform"> <?php //creating month dropdown menu $mnd=array(Januari, Februari, Maart, April, Mei, Juni, Juli, Augustus, Sepember, Oktober, November, December); $counter=0; echo (" <select id='maand' size='1'>"); echo("<option selected value='Maanden'>-Maanden- "); echo(" </option> "); for($counter==0; $counter < 12;){ echo "<option value='m+".$counter."'>"; echo "$mnd[$counter]"; echo "</option>"; $counter++; }; echo (" </select>"); //Creating the week dropdown $tel=0; while($tel < 52){ $nummer = $tel + 1; $wk[$tel] =("Week $nummer"); $tel++; } $teller=0; echo (" <select id='week' size='1'>"); echo("<option selected value='Weken'>-Weken- "); echo(" </option> "); for($teller==0; $teller < 52;){ echo ("<option value='w+".$teller."'>"); echo ("$wk[$teller]"); echo ("</option>"); $teller++; } echo("</select>"); //creating the year drop down $jaar =date("Y"); $volgendjaar_time = strtotime("+1 year");//next year $volgendjaar = date("Y",$volgendjaar_time); $vorig_jaar_time = strtotime("-1 year");//last year $vorigejaar = date("Y",$vorig_jaar_time); $jr=array($vorigejaar,$jaar,$volgendjaar); $count=0; echo (" <select id='jaar' size='1'>"); echo("<option selected value='Jaren'>-Jaren- "); echo(" </option> "); for($count==0; $count < 3;){ echo ("<option value='j+".$count."'>"); echo ("$jr[$count]"); echo ("</option>"); $count++; }; echo (" </select>"); ?> <button class="button">knop</button> </form> <h1 align="center">Januari</h1> <div id ="overzicht"> <?php $i=0; $a=1; While($i < 7){ $dagnaam = array (date("l", mktime(0, 0, 0, 1, +$a,1))); $i++; $a++; Foreach($dagnaam as $value){ echo "<div id='$value' name='$value'>"; echo "$value"; echo "</div>"; } } ?> </div> </div> </body> </html > On Jul 6, 4:59 pm, Eric Garside <gars...@gmail.com> wrote: > Well, firebug shouldn't have cared as much as IE would, because of a > comma inside the list of params in your POST. The last element in an > object can't have a comma. > > Also, could you post the HTML? > > On Jul 6, 8:49 am, Mark <johanns.m...@gmail.com> wrote: > > > I have 3 drop down menu's where is post the value's bij a button.click > > (see code below). > > But when i push the button i see an error in fire bug > > "POST"http://localhost/agendanieuw/handler.php67ms jquery-1.3.2.js(line > > 3633)" > > I looked online for awnsers but couldn't find any. Maybe you guys can > > help me. Here is my js code. > > > <script type="text/javascript" src="jquery-1.3.2.js"></ > > script> > > <script type="text/ > > javascript"> > > > $(document).ready(function() { > > $("button").click(function() { > > $.post('handler.php', { > > > jaar:$('#jaar').val(),//jaar means year > > maand:$('#maand').val(),//maand means month > > week:$('#week').val(), > > > }) > > }); > > }); > > </script>