1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need Quick PHP Help!

Discussion in 'BlackHat Lounge' started by JuicyBlack, Jun 2, 2010.

  1. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    Hey guys,

    I am trying to do some data gathering with one of my blogs (wordpress) but I need to be able to pass data gathered from header.php to full-page.php

    In header php I gather the values of 3 variables such as:

    PHP:
    $povkey='value 1';
    $ovkey='value 2';
    $ad='value 3';
    Now in full-page.php which is a full page template for wordpress (no sidebar) .... the page calls:

    PHP:
    <?php get_header(); ?>
    The problem here is that I need to use all 3 variables in full-page.php and I have no idea as to how to pass these variables down to that page.

    I did a test and all 3 variables show OK in the headers of the WP pages (because the info is gathered in header.php) but the info is not being passed down to the content area or full-page.php

    I have the feeling that I need to use an array 2 pass the data but I have no idea how to do that from header.php to full-page.php :(

    Any ideas? Besides learn php? LOL
     
    Last edited: Jun 2, 2010
  2. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    ^ OMG so simple and yet so effective! And here I was thinking of arrays and passing by reference and whatnot LOL

    Thanks so much m8 :)