Jump to content

Archived

This topic is now archived and is closed to further replies.

imnotokay881

A few noob questions...

Recommended Posts

A few things:
1.) Including a variable from a another php page like:
[code]td height="20" bgcolor="#336699" valign="center"><font face="verdana" size="2">TXT
            HERE</font></td>[/code]
Where is says text here, i would want to put text from a variable from another page.

2.) Putting text into an image from $pictxt = 'TextHere'
to display on the image.
And if you could grab the $pixtxt from another page.
Thanks for any help. Really appreciate it

-Ino881

Share this post


Link to post
Share on other sites
see

[a href=\"http://us2.php.net/manual/en/language.variables.external.php\" target=\"_blank\"]http://us2.php.net/manual/en/language.variables.external.php[/a]

and

[a href=\"http://us2.php.net/imagestring\" target=\"_blank\"]http://us2.php.net/imagestring[/a]

Share this post


Link to post
Share on other sites
Actually after looking thogh didnt see anything... but... but i did think of something...
var.php
[code]
$headtext= 'header'
[/code]
page.php
[code]
<?php
include 'var.php';
echo " $headtext "
[/code]

would that work???

EDIT:
Doesnt work...
i figured if i included a file with the variables it would work but i guess not...
any ideas?

Share this post


Link to post
Share on other sites
Put <?php ... ?> at begining and end of var.php

var.php
[code]<?php
$headtext = 'header';
?>[/code]


page.php
[code]<?php
include 'var.php';
echo $headtext;
?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.