Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 31st Dec 2013, 04:22 AM   #1
Mastermind
War Room Member
 
KennyAmy's Avatar
 
Join Date: 2013
Posts: 78
Thanks: 74
Thanked 41 Times in 33 Posts
Default
[Currently Closed]
Share on: 
fb share twitter share gplus share more share

[Currently Closed]

Last edited on 1st Feb 2016 at 08:42 PM.
KennyAmy is offline  
Unread 1st Jan 2014, 01:18 AM   #2
IM Rocks!
War Room Member
 
shahriyar's Avatar
 
Join Date: 2010
Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
Arrow
Re: How to get JS to work in PHP!!!
Share on: 
fb share twitter share gplus share more share

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>

shahriyar is offline  
Unread 1st Jan 2014, 09:10 PM   #3
Warrior Member
 
Join Date: 2014
Posts: 5
Thanks: 0
Thanked 3 Times in 2 Posts
Default
Re: How to get JS to work in PHP!!!
Share on: 
fb share twitter share gplus share more share

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
?>
InsolentCat is offline  
Unread 1st Jan 2014, 09:13 PM   #4
Advanced Warrior
 
Ricardo Furtado's Avatar
 
Join Date: 2013
Location: WWW
Posts: 697
Thanks: 68
Thanked 108 Times in 100 Posts
Default
Re: How to get JS to work in PHP!!!
Share on: 
fb share twitter share gplus share more share

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.

Ricardo Furtado
Ricardo Furtado is offline  
Closed Thread


Bookmarks

Tags
php, work


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:05 PM.