Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a finished documants and there is a button that is working on that page code is below...

Now I made another php documant include html button..

That is my question can I call other button funciton when I push that button._?

What I have tried:

<td><button type="button" name="view_files" data-name="'.$name.'" class="view_files btn btn-default btn-sm">İncele</button></td>
Posted
Updated 28-Apr-20 5:09am

1 solution

PHP is a server-side only application. Javascript for the client side.

So - you can use php to construct buttons.

Now as far as inter-page button pushing? There's a lot of security features in browser to strictly limit interactions between pages. Amongst these is that you cannot affect a page that is not a child process (as in javascript creation) of that page.

There's more to the security between pages, websites, and such, to prevent at least the simplest levels of hacking of one website's output by another.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900