Thread: PHP & Layers

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Redmond, WA
    Posts
    218
    Rep Power
    15
    I'm still a PHP newbie here. My website is going through what I like to call a "php evolution" where I am programming PHP scripts like crazy!

    I am in the middle of programming a stats script but am having trouble getting it to execute when I click on a link that calls a layer, instead of another file. Whenever I call another file, it works just fine. I tried to set up a function call in the anchor tags, but that did not seem to work. Any suggestions?

    Thanks in advance..
  2. #2
  3. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    61
    If you have a link in your page that calls another object on the same page, there is no way for PHP to interact with it, as that function is being handled on the client side, with the user's browser.

    PHP is server-side only, which means that a page HAS to be loaded every time you want PHP to execute something.

    Javascript is the way to handle client-side events. When loading, you can use PHP to load data for Javascript to use after the page is loaded.

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 03:12 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo