|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
simple php question
I have a page (index.php) and linked to that i have a
include page where i have defined a function called getInfo(); which just drags data out of my database, this works with no problems. I want it to work so that the getInfo() function is only run when a button is pressed in the index.php. I want somehting like <img src="36.gif" width="18" height="18" onClick= <? getInfo() ?>> only somehting that works instead, how do i sort this? thanks alot, |
|
#2
|
||||
|
||||
|
It will never work with the onClick statement. This is used by js and is executed on client-side while your function has to be executed server-side.
Try it with a iframe which is hidden, or with extra GET-variables.
__________________
Work to live, don't live to work |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > simple php question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|