csckid Posted April 13, 2009 Share Posted April 13, 2009 <script type="text/javascript"> i=60; </script> <?php echo "var minu=". $_GET['time'].";"; ?> <script type="text/javascript"> alert(minu); </script> well it didnt work for me..... is there any way to get the URL parameter Link to comment https://forums.phpfreaks.com/topic/153834-can-we-write-this/ Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted April 13, 2009 Share Posted April 13, 2009 Add the dynamically generated javascript code inside <script> tag like that : <script type="text/javascript"> i=60; <?php echo "var minu=". $_GET['time'].";"; ?> alert(minu); </script> And view the source with your browser to see if the ouput is actually what you are expecting. Link to comment https://forums.phpfreaks.com/topic/153834-can-we-write-this/#findComment-808500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.