how to create pop ups on your wordpress site using php?

Discussion in 'PHP' started by omaradsense, Nov 15, 2011.

  1. #1
    hello members

    how i can create pop ups on my wordpress site using php?

    what the code i should write... and where?

    pls help.
     
    omaradsense, Nov 15, 2011 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,899
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    PHP is for server side processing. All it can do is generate the html or javascript files that will generate the popup.
     
    sarahk, Nov 15, 2011 IP
  3. omaradsense

    omaradsense Active Member

    Messages:
    327
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #3

    Okey...any one can help me how i can do that?
     
    omaradsense, Nov 15, 2011 IP
  4. pcsgroups

    pcsgroups Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you need to call a javascript function as per you requirement and then write an alert or popup script over there. That's it.
     
    pcsgroups, Nov 16, 2011 IP
  5. Jesse12

    Jesse12 Member

    Messages:
    360
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #5
    PHP is for server side processing. All it can do is generate the html or javascript files that will generate the popup. You can use

    Window.open() method of javascript to open a pop-up window.
     
    Jesse12, Nov 19, 2011 IP