mattm1712 Posted September 24, 2010 Share Posted September 24, 2010 i want to put a mouse over in php tags <?php echo" <table> <TD onMouseOver="this.bgColor='#00CC00'" onMouseOut="this.bgColor='#009900'" bgColor=#009900><tr> "; ?> but i get confused with the " and ' where i should/shouldnt use them ................ Quote Link to comment Share on other sites More sharing options...
kickstart Posted September 24, 2010 Share Posted September 24, 2010 Hi Just escape the " within the echo statement to force them as " rather than ending the string. All the best Keith Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 24, 2010 Share Posted September 24, 2010 You can't put double quotes within a string defined with double quotes - at least not without escaping them: <?php echo" <table> <TD onMouseOver=\"this.bgColor='#00CC00'\" onMouseOut=\"this.bgColor='#009900'\" bgColor=\"#009900\"><tr> "; ?> 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.