Saturday, April 24, 2010

Why does this code (see additional info) work in Firefox, but not in IE?

http://foreignaffairs.us/feedbackleave.p...



See the textbox? It works in firefox, but it IE it's like the textbox wont close and puts the rest of the page into the textbox?



Here is the PHP from the textbox... (I had to put in 3 spaces in various places to keep Yahoo Answers from shorting long strands and putting "...")



echo '%26lt;tr%26gt;%26lt;td%26gt;Your Comments:%26lt;/td%26gt;%26lt;td colspan=2%26gt;%26lt;textarea name="feedback" rows="10" cols="50" maxlength="5000"';



if ($m == 'edit') {



echo " value='".htmlentities ($row1['feedback'], ENT_QUOTES) ."'";



}



echo "%26lt;/textarea%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;";



Why does this code (see additional info) work in Firefox, but not in IE?microsoft office





You're missing a closing "%26gt;" around your textarea tag after the "5000"



Should be:



%26lt;textarea name="feedback" rows="10" cols="50" maxlength="5000"%26gt;%26lt;/textarea%26gt;



Why does this code (see additional info) work in Firefox, but not in IE?opera browser internet explorer



Try changing this:



echo '%26lt;tr%26gt;%26lt;td%26gt;Your Comments:%26lt;/td%26gt;%26lt;td colspan=2%26gt;%26lt;textarea name="feedback" rows="10" cols="50" maxlength="5000"';



to this:



echo '%26lt;tr%26gt;%26lt;td%26gt;Your Comments:%26lt;/td%26gt;%26lt;td colspan=2%26gt;%26lt;textarea name="feedback" rows="10" cols="50" maxlength="5000"%26gt;';



Note the added "%26gt;"



Basically, you didn't finish your %26lt;textarea%26gt; tag, so IE saw '%26lt;textarea' and looked for the end of the tag '%26gt;' and it didn't find it until it got to the end of '%26lt;/textarea%26gt;'. So it interpreted it as one great big %26lt;textarea%26gt; tag with no closing tag.



edit: What ^he^ said. :/

No comments:

Post a Comment

 
web hosting talk