搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

When i use HTML forms in firefox 6, they dont work, but do in IE and safari and firefox 3.6

  • 2 回覆
  • 4 有這個問題
  • 5 次檢視
  • 最近回覆由 phpdev69

more options

i have the following code in a php script, but in firefox 6 it fails, but works in firefox 3.6, safari, IE .......

echo '          <FORM method="post" action="FindPerGetNo.php">';
echo '          <tr>';
echo '            <SELECT name="SelectionString">';
  	
echo '<OPTION selected value="12">12</option>';
  	
        while($row = mysql_fetch_array($query))
         {
	   echo '<OPTION value=" -'.$row['sTableID'].'-">'.$row['sTableName'].'</OPTION>';
         }
  	echo '	    	    </SELECT> ';									}
  
echo '          </tr>';
  
echo '          <tr> ';
echo '            <p align="left">';
echo '            <td colspan="2"><div align="left"><input type="submit" value="Submit"></div></td>'; 
echo '          </tr> ';
  
echo '          </FORM>'; 


the called script has no value for SelectionString in firefox 6, but it does in the other browsers i mentioned

i have the following code in a php script, but in firefox 6 it fails, but works in firefox 3.6, safari, IE ....... <pre><nowiki> echo ' <FORM method="post" action="FindPerGetNo.php">'; echo ' <tr>'; echo ' <SELECT name="SelectionString">'; echo '<OPTION selected value="12">12</option>'; while($row = mysql_fetch_array($query)) { echo '<OPTION value=" -'.$row['sTableID'].'-">'.$row['sTableName'].'</OPTION>'; } echo ' </SELECT> '; } echo ' </tr>'; echo ' <tr> '; echo ' <p align="left">'; echo ' <td colspan="2"><div align="left"><input type="submit" value="Submit"></div></td>'; echo ' </tr> '; echo ' </FORM>'; </nowiki></pre><br /> <br /> the called script has no value for SelectionString in firefox 6, but it does in the other browsers i mentioned

由 cor-el 於 修改

所有回覆 (2)

more options

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

more options

Many Thanks for the advice. I posted the question there as well.