unidox Posted May 26, 2008 Share Posted May 26, 2008 Is there a way I can insert a php url from a mysql database, into a javascript function within script tags? Link to comment https://forums.phpfreaks.com/topic/107327-php-in-javascript/ Share on other sites More sharing options...
BlueSkyIS Posted May 26, 2008 Share Posted May 26, 2008 yes. <?php $j_value = 'your_url_here'; ?> <script language='javascript'> alert("j_value is <?php echo $j_value; ?>"); </script> Link to comment https://forums.phpfreaks.com/topic/107327-php-in-javascript/#findComment-550283 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.