imnotokay881 Posted April 15, 2006 Share Posted April 15, 2006 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 More sharing options...
Barand Posted April 15, 2006 Share Posted April 15, 2006 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 More sharing options...
imnotokay881 Posted April 15, 2006 Author Share Posted April 15, 2006 thx barand, great links Link to comment https://forums.phpfreaks.com/topic/7497-a-few-noob-questions/#findComment-27320 Share on other sites More sharing options...
imnotokay881 Posted April 15, 2006 Author Share Posted April 15, 2006 Actually after looking thogh didnt see anything... but... but i did think of something...var.php[code]$headtext= 'header'[/code]page.php[code]<?phpinclude '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 More sharing options...
Barand Posted April 15, 2006 Share Posted April 15, 2006 Put <?php ... ?> at begining and end of var.phpvar.php[code]<?php$headtext = 'header';?>[/code]page.php[code]<?phpinclude 'var.php';echo $headtext;?>[/code] Link to comment https://forums.phpfreaks.com/topic/7497-a-few-noob-questions/#findComment-27340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.