Basic PHP help!
Posted: Mon Jan 19, 2009 4:59 pm
I have searched for hours, trying to figure this out. Please help me. I barely understand PHP.
I want to have a php page that contains all the variables, so I'm guess it would look something like this, I'm not really sure:
<body>
<?php
$var1 = 10;
$var2 = 4;
$var3 = 7;
$var4 = Hello World;
?>
</body>
Then, I simply want to display those variables on another php page. Could you tell me what exactly is the code I need to display one of the above written variables?
Thanks, Shane
I want to have a php page that contains all the variables, so I'm guess it would look something like this, I'm not really sure:
<body>
<?php
$var1 = 10;
$var2 = 4;
$var3 = 7;
$var4 = Hello World;
?>
</body>
Then, I simply want to display those variables on another php page. Could you tell me what exactly is the code I need to display one of the above written variables?
Thanks, Shane