javascript function in redirection possible?

Discussion in 'PHP' started by gilgalbiblewheel, Mar 3, 2009.

  1. #1
    Is this possible?
    header("Location: Javascript: addToDb();");
    PHP:

     
    gilgalbiblewheel, Mar 3, 2009 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I doubt it. But couldn't you tell by trying? Or by using something obvious like alert()?
     
    SmallPotatoes, Mar 3, 2009 IP
  3. aljosabre

    aljosabre Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's not possible ... simple as that :D
     
    aljosabre, Mar 3, 2009 IP
  4. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Definitely not, no.
     
    Danltn, Mar 3, 2009 IP
  5. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #5
    You can do it using browser address bar.

    But, I am not sure about this. Try it using simple function such as alert.

    I think the answer is a NO though.

    - ads2help
     
    ads2help, Mar 3, 2009 IP