Jump to content

can we write this


csckid

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.