11
Hey, guys, good afternoon. How do I use a variable from an X.php file on the Y.php page ? I want to do the following for example:
<?php
$Frase = "minha frase";
?>
On my Y page I want to get the value of one of these variables, example:
<h3>
<?php $Frase; ?>
How could I receive the result of these variables from other pages? someone would have an example?
Yes it is possible with
include
/require
or passing as parameter via get/post.– rray
How you are getting the value of this variable?
– Naldson
include('includes/controllers.php');
– Júlio Rodrigues
It is better to add more details about your problem, how it works include, pq need to pass this value to another page.
– rray