Triple_Deuce Posted April 30, 2008 Share Posted April 30, 2008 I found this javascript Rich Text editor and I cant pass a php variable to it... what I have: writeRichText('rte1', '<? echo "$body";?>', 400, 200, true, false); which doesnt work, doesnt show the text editor when ran. please help me out. Link to comment https://forums.phpfreaks.com/topic/103566-php-variable-in-writerichtext/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 30, 2008 Share Posted April 30, 2008 Is the "view source" correct in your browser? Does the file this code is in have a .php extension? Are short open tags <? enabled on your server? Without any additional information, it is not really possible to say what the problem is. Link to comment https://forums.phpfreaks.com/topic/103566-php-variable-in-writerichtext/#findComment-530376 Share on other sites More sharing options...
Triple_Deuce Posted May 1, 2008 Author Share Posted May 1, 2008 I have done some looking around and i have found that you cant pass plain php variables through this javascript... how do i make it so it can be passed? all works, i have done other php with short tags etc just this one is mixed with a javascript function that works by itself but disappears with the variable Link to comment https://forums.phpfreaks.com/topic/103566-php-variable-in-writerichtext/#findComment-530806 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.