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 Quote Link to comment 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. 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.