DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   how to use php with java script (http://www.daniweb.com/forums/thread124785.html)

almualim May 18th, 2008 10:36 am
how to use php with java script
 
hi friends i want to use php code with JS functi:$ on, please help me

nav33n May 18th, 2008 10:50 am
Re: how to use php with java script
 
Can you be more specific ?

TopDogger May 19th, 2008 5:21 pm
Re: how to use php with java script
 
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.

guido_sarducci May 19th, 2008 6:13 pm
Re: how to use php with java script
 
Quote:

Originally Posted by almualim (Post 609303)
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

almualim May 20th, 2008 3:48 am
Re: how to use php with java script
 
thanks friends...


All times are GMT -4. The time now is 2:26 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC