Jump to content

PHP & Firefox 4 problem


budimir

Recommended Posts

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>

 

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.