• I created a variable in the header, and i am trying to access the variable again, in the actual post itself.

    i am wondering why i can’t actually do that?

    anyone know what i have to do to ge tthat working?

    Ilan

Viewing 4 replies - 1 through 4 (of 4 total)
  • I created a variable in the header, and i am trying to access the variable again, in the actual post itself.

    What variable did you set up in header? Be more specific please.

    Thread Starter iperez_genius

    (@iperez_genius)

    what does it matter…

    i set the variable $make = “Hello” in the header.

    in the post i try to print it and i can’t…

    why is that?

    Be more specific please. Did you used the variable within a php function? In that case you should first make the varibale in the function global with “global $make;” before you can use it

    Thread Starter iperez_genius

    (@iperez_genius)

    okay…

    in the header.php i set the varaible $make = “test”;

    i want to print the variable in
    1. The page.php page
    2. in the actual post.

    this is driving me crazy…
    Ilan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘passing variables’ is closed to new replies.