i dont understand function of header()

Discussion in 'PHP' started by noraini, Jun 3, 2007.

  1. #1
    hello im newbies here.

    just want to ask, already confius the function for header(),

    i build my website by using dreamweaver frame (header.php+navigation.php+main.php)
    that one for my index.php.
    but when i successfully registeration the second page no include. suppose from signon will kol another frameset i give name as index2.php contains (header.php+navigation2.php+home.php)
    please help me almost 1 week i tried on my own.
     
    noraini, Jun 3, 2007 IP
  2. ZenOswyn

    ZenOswyn Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The header() function sends raw HTTP headers to the users browser. You can read more about it, and find some examples here http://php.net/header
     
    ZenOswyn, Jun 3, 2007 IP
  3. noraini

    noraini Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok..if let say i dont want to use header() function, there is another function to redirect my second frameset (index2.php contain header.php+navigation2.php+home.php).
    There is another function??
     
    noraini, Jun 3, 2007 IP
  4. ZenOswyn

    ZenOswyn Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you don't want to use that function to redirect, you could always use a meta tag.

    
    <META http-equiv="refresh" content="0;URL=http://www.google.com"
    
    Code (markup):
     
    ZenOswyn, Jun 3, 2007 IP
  5. noraini

    noraini Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sorry i still face the same problem where the 2nd frame not appeared only appear just nested in the mainframe for index.php.
     
    noraini, Jun 4, 2007 IP
  6. ZenOswyn

    ZenOswyn Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You'll have to post some of your code so we can help you further.
     
    ZenOswyn, Jun 4, 2007 IP