how to use php with java script

Reply

Join Date: May 2008
Posts: 28
Reputation: almualim is an unknown quantity at this point 
Solved Threads: 0
almualim almualim is offline Offline
Light Poster

how to use php with java script

 
0
  #1
May 18th, 2008
hi friends i want to use php code with JS functi on, please help me
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,736
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 328
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: how to use php with java script

 
1
  #2
May 18th, 2008
Can you be more specific ?
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 87
Reputation: TopDogger is an unknown quantity at this point 
Solved Threads: 5
TopDogger's Avatar
TopDogger TopDogger is offline Offline
Junior Poster in Training

Re: how to use php with java script

 
0
  #3
May 19th, 2008
PHP is server-side code. It runs on the server and is executed before a script is sent to the user.

JavaScript is typically used as client-side code. It runs in a user's browser and is executed after the user's browser processes the script.

You can use PHP to generate JavaScript cide, but other than that, they do not interact with each other.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3
Reputation: guido_sarducci is an unknown quantity at this point 
Solved Threads: 0
guido_sarducci guido_sarducci is offline Offline
Newbie Poster

Re: how to use php with java script

 
0
  #4
May 19th, 2008
Originally Posted by almualim View Post
hi friends i want to use php code with JS functi on, please help me
I am able to cause a php script to execute by using the following attribute inside a <a> tag:
onClick="parent.location='your_file.php?param=value'"

Hope that helps,
Dave
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 28
Reputation: almualim is an unknown quantity at this point 
Solved Threads: 0
almualim almualim is offline Offline
Light Poster

Re: how to use php with java script

 
0
  #5
May 20th, 2008
thanks friends...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC