|  | 
|  | 
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  Javascript included in PHP? 
			
			I have a PHP code that requires Javascript to run. I have the Javascript code but I'm confused on how to make the Javascript code work with the PHP code. Do I add <script type="text/javascript" src="/javascriptnamehere.js"></script> in the PHP code and if so, where? It would be really helpful if someone could explain that to me. :)
		 
				__________________  | 
| 
			 
			#2  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			Nevermind. I got it to work. :)
		 
				__________________  | 
| 
			 
			#3  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			Glad you figured it out, the most common location to insert javascript is your template html file. The js file can be included in the header.
		 
				__________________  Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. | 
|  | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| \\Javascript Help, Please// | Poppy | Questions and Supports | 0 | 11-06-2011 11:28 AM | 
| Javascript help? | AlexC | Programming and Game Development | 0 | 07-19-2011 06:22 AM | 
| Anyone here knows Javascript? | Hall of Famer | Other Chat | 5 | 04-06-2011 07:21 PM | 
| How to get a PHP file to be included in the files in different directories? | robertson | Other Chat | 4 | 11-09-2010 10:20 AM | 
| lang.php not included in forgotpass.php [ANSWERED] | arlecchina | Questions and Supports | 4 | 07-14-2009 06:42 PM | 
| What's New? | What's Hot? | What's Popular? |