Can someone please help. I have a rollover image and when you click it takes you to a page. But I want it to remain on the same page. I want it to display data from a db. But should appear on the same page where the button is. So on click I want it display the echo in my function. Not on body load but only on the click event. I tried using a session but when the page loads it still appears. my code kinda looks like this. "onClick="<? test(); ?>" " inside that a href of the rollover please help :(
mundetas
0
Light Poster
Recommended Answers
Jump to PostHi there,
The problem is that php is pre-processed, ie all of the php code is run before a page is served to the client and therefore, you cannot add interactivity to a page (like with the onXXXX event handlers of html elements) with php. You need to use …
All 3 Replies
Reply to this topic
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.