Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   [Currently Closed] (https://www.warriorforum.com/programming/885769-currently-closed.html)

KennyAmy 31st December 2013 04:22 AM

[Currently Closed]
 
[Currently Closed]

shahriyar 1st January 2014 01:18 AM

Re: How to get JS to work in PHP!!!
 
I haven't seen your page but, If you want to load a Javascript via PHP use 'echo' to generate the script tag.

e.g.
Code:

<script type="text/javascript" src="exit.js"></script>

InsolentCat 1st January 2014 09:10 PM

Re: How to get JS to work in PHP!!!
 
You can typically put regular HTML style code in any php page as well.

A regular PHP document goes like this:

PHP Code:

<?php
//a bunch of php code
?>

A person can put HTML after that closed tag though, so you can insert HTML (including JavaScript) into a PHP doc like this:

PHP Code:

<?php
//Some of my PHP doc goes here
?>

<!-- now I can put in regular HTML stuff (like my script) here -->
<script type="text/javascript" src="exit.js"></script>

<?php
//and the rest of my php can keep going on here
?>


Ricardo Furtado 1st January 2014 09:13 PM

Re: How to get JS to work in PHP!!!
 
Why did you create a sales funnel in PHP mode? What is the reason for this? Can you please enlighten me?
Best wishes and regards.


All times are GMT -6. The time now is 11:00 PM.