Jump to content

A few noob questions...


imnotokay881

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
Link to comment
https://forums.phpfreaks.com/topic/7497-a-few-noob-questions/
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]
Link to comment
https://forums.phpfreaks.com/topic/7497-a-few-noob-questions/#findComment-27315
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?
Link to comment
https://forums.phpfreaks.com/topic/7497-a-few-noob-questions/#findComment-27331
Share on other sites

Archived

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

×
×
  • Create New...

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.