Jump to content

php code in javascript...


rocky3015

Recommended Posts

Sure you can. You can do it two ways:

 

1) include the php file as a javascript file

  ?>

  <scrypt type="text/javascript" src="javascript.php"></script>

  <?php

 

2) include the file as a php file:

  ?>

  <scrypt type="text/javascript">

  <?php

  include ("javascript.php");

  ?>

  </script>

  <?php

 

 

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.