hey everyone. i have been using c# for web development for a while and a few days ago i started building a site in php. i am 80% done but i have a simple problem. i have no clue to call a function onClick of an image button. i know how to code the function i just don`t know how to call it. thanks in advance.
Hi You've fallen into the trap of thinking that PHP is used everywhere... it's not. PHP works in partnership with Javascript. PHP outputs text files that just so happen to be HTML. The web browser reads the HTML and uses links, forms and javascript to do the rest. Is your image a submit button on a form? a link to another page? or does it need to make something happen on the current page? How you code it depends on the answer.
I hope you know , what is client side script and what is serverside script When u click on image , some evet occur (onClick) , those are client side event if you want to send some data to server and do some work on data , you have to use GET or POST method If you understand above concept , you can do lot