paparanch Posted March 12, 2009 Share Posted March 12, 2009 hellow everyone! i validated my site emorocks.com, and i found out that there are some errors regarding my textarea tag...it says that <a> and <br> tag are not allowed inside the textarea tag...but these are really needed in my code so that the user will just copy it and paste it to their friendster profile...and the image will display in their profile...any help please? is their any solutions to fix this one to be validated in xhtml? echo "<textarea onclick='this.select();' rows='2' cols='10' style='overflow:hidden; width:448px; height:30px;' ><a href='http://www.emorocks.com/".$cat."/' ><img src='http://www.emorocks.com/comments/".$cat."/".$comment."' alt='Emorocks - the coolest place for free EMO comments' border='0' /></a><br />EmoRocks.com</textarea>"; Quote Link to comment https://forums.phpfreaks.com/topic/149072-solved-validated-textarea-tagplease-help/ Share on other sites More sharing options...
haku Posted March 12, 2009 Share Posted March 12, 2009 For your tags, instead of using: < in <a> Use < And instead of the > in <a> use > You can do the same with the <br> tags. Quote Link to comment https://forums.phpfreaks.com/topic/149072-solved-validated-textarea-tagplease-help/#findComment-782797 Share on other sites More sharing options...
paparanch Posted March 13, 2009 Author Share Posted March 13, 2009 wow! it works like a charm! tnx for this mr.guru! now its all validated! Quote Link to comment https://forums.phpfreaks.com/topic/149072-solved-validated-textarea-tagplease-help/#findComment-783512 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.