Is it possible to popup a window when..

Discussion in 'PHP' started by Crayz, Jul 14, 2007.

  1. #1
    Hello, I am trying to open a popup window when someone clicks one of my download links.

    The file is downloaded directly off of someone elses site, yet hosted on my server/website.

    So I was wondering, when someone clicks that download link, is it possible to open up a popup window/new browser?

    Or just perform any actions I specify?


    Thanks!

    Sorry if this isn't php :(


    One more thing, is there a script that will allow me to insert a simple .txt file to the . rar/zip files that are uploaded to a certain directory specified?
     
    Crayz, Jul 14, 2007 IP
  2. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #2
    about first question, YES it's possible with
    onclick="open_new_window();location.href='new_url'"

    about second question:
    The upload is made via php script?
     
    gibex, Jul 15, 2007 IP
  3. Crayz

    Crayz Well-Known Member

    Messages:
    708
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    120
    #3
    Well, here's what I meant: (I posted this late last night so I wanted to hurry up and get to sleep :x)

    www.lalabinks.com => Index.php => <link="http://mysite.com/file.zip">Click here to download!</link>

    So when people click that downloading link, to download off of my mirror, I want a popup window to open. Or just a normal window, or w/e. Also, as I stated in the first post, possibly be able to do some of my own php actions when this happens.

    Thanks!
     
    Crayz, Jul 15, 2007 IP