budimir Posted April 15, 2011 Share Posted April 15, 2011 Hey Guys, Why this code isn't working with Firefox 4??? It worked perfectly with FireFox 3, but now when I select something from the dropdown list and klik on send button, nothing happens??? Can you help??? <form id="form1" name="form1" method="post" action="<?php $_SERVER["PHP_SELF"]; ?>"> <input type="hidden" name="newsletter_id" value="<?php echo "$newsletter_id"; ?>" /> <select name="mail_lista" id="mail_lista"> <option value="" selected="selected">Odaberite mail listu</option> <option>---------------------------------------</option> <option value="11"><b>Aktivni Servisi</b></option> <option value="22">Aktivne Trgovine</option> <option>---------------------------------------</option> <?php $upit = "SELECT * FROM newsletter_mail_liste"; $rezultat = mysql_query($upit,$veza) or die (mysql_error()); while($row = mysql_fetch_array($rezultat)){ $list_id = $row["list_id"]; $naziv = $row["naziv_liste"]; echo '<option value="'.$list_id.'">'.$naziv.'</option>'; } ?> </select> <input name="posalji" type="image" src="../admin/skin/send_emai_malil.png" alt="send" align="middle" border="0" title="Pošalji newsletter!" value="1" /> </form> Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted April 15, 2011 Share Posted April 15, 2011 At a glance all looks fine, except that can't be all the code, or you are using variables that have no value. Try and replace your refference to $_SERVER["PHP_SELF"] with the actual page name and see what happens. Another thing you could try is to run the actual query outside of the form and only itterate through the results inside the select tags, just in case it's masking any error messages. Also - it's no big deal, but you don't need your quotes around the variable here: echo "$newsletter_id" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.