• NetMonkey

    (@headmonkey)


    Hi all,

    Here’s what I’m trying to do. Not too difficult for php coders, but a nightmare for me. The site I’m working on will register a user and log them into a member content area.

    Once they are in that member content area, I have an image as a link I need to code, so when the user clicks on the image, it calls a php file that executes which runs authentication code and passes it to a third-party website that authenticates the user, does a redirect and logs them into a secure page at that site. Simple right? Not so much for me…

    From what I’ve read so far, I’ve been seeing discussions comparing Javascript to Ajax and JSON and it’s like reading Chinese to me.

    Does someone know of a simple Javascript script that I could tweak slightly that would execute the php file? Or what’s the best straightforward method I should use here?

    Any help is (greatly) appreciated!

    Barry

  • The topic ‘How to code – click an image and execute a php file’ is closed to new replies.