Well my question isn't as simple as it sounds. I'm reworking a Flat File and embedding an RSS Feed. The title is already set by hand but the RSS Feed is going to be pulled dynamically based on the page title. I was trying this <?php $rss_keyword = '<script type="text/javascript"> document.write(document.title) </script> '; The Rest of the RSS Code ?> Code (markup): But that didn't work does anyone have any ideas
Sorry but I didn't understand your question - can you please explain it a bit better? (or maybe it's just me... )
And you don't know the title *before* you grab the RSS feed? And how do you grab the feed? Why would you need JavaScript? The code you proposed doesn't work because PHP is *server side*, while JavaScript is *client side* - therefore you can't write in a PHP block with JavaScript since the PHP block doesn't "exist" anymore once the JavaScript gets executed. HTH, cheers