hi friends i want to use php code with JS functi:$ on, please help me

Can you be more specific ?

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.

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

thanks friends...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.