User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,193 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,796 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 317 | Replies: 4
Reply
Join Date: May 2008
Posts: 23
Reputation: almualim is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
almualim almualim is offline Offline
Newbie Poster

how to use php with java script

  #1  
May 18th, 2008
hi friends i want to use php code with JS functi on, please help me
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,024
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 227
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: how to use php with java script

  #2  
May 18th, 2008
Can you be more specific ?
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Aug 2005
Location: somewhere in time
Posts: 71
Reputation: TopDogger is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
TopDogger's Avatar
TopDogger TopDogger is offline Offline
Junior Poster in Training

Re: how to use php with java script

  #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  
Join Date: Nov 2007
Location: Massachusetts, USA
Posts: 3
Reputation: guido_sarducci is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
guido_sarducci guido_sarducci is offline Offline
Newbie Poster

Re: how to use php with java script

  #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  
Join Date: May 2008
Posts: 23
Reputation: almualim is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
almualim almualim is offline Offline
Newbie Poster

Re: how to use php with java script

  #5  
May 20th, 2008
thanks friends...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 9:59 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC