Help With Making Javascript Code Work For PHP File(Free Copy For Help)

5 replies
Title says it all. I have a product thats mainly for .html pages. But I would like it to also be compatible with php files/wordpress. Looking forward to hearing back!
#code #copy #filefree #javascript #making #php #work
  • Its a script*
    {{ DiscussionBoard.errors[4456948].message }}
  • Profile picture of the author jaimegm
    Please Could you show one example of what you are trying to accomplish?

    Free course about free from Youtube Twitter or Email at

    {{ DiscussionBoard.errors[4471995].message }}
  • Profile picture of the author jaybaker
    Send me the files and or pm me and I would be glad to take a look.

    Do you want to make successes or excuses? Success? Alright then... See what's in store for you....
    - The AC Assassin

    {{ DiscussionBoard.errors[4472865].message }}
    • Profile picture of the author avatar9812
      You can still put the same javascript in php file, it will be rendered as html finally.
      {{ DiscussionBoard.errors[4474100].message }}
      • Profile picture of the author unnatural
        Just put the javascript outside of the open and closing PHP tags and it will run just fine. PHP is server side so it won't effect your javascript code.

        You can even use PHP variables within your javascript code if need be.


        //some php functions
        <script type="text/javascript">
        //some javascript code
        var javascriptWithPhp = <?php echo ; ?>
        //some more php code
        {{ DiscussionBoard.errors[4476190].message }}

Trending Topics