Re: Re: function? variable?

From: Date: Tue, 12 Feb 2002 06:16:19 +0000
Subject: Re: Re: function? variable?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84365@lists.php.net to get a copy of this message
Jason, If I understand your question, you want to display the contents of a variable to screen? Try this:
<html> <head> <title></title> </head> <body> <? $test_variable = "this is a test"; echo "Here is what it says: $test_variable"; ?> </body> </html>
Also note that you do not need to use the PHP tags twice: echo "<?witakr home?> //incorrect echo "wtakr home"; //correct Steven J. Walker Walker Effects www.walkereffects.com steve@walkereffects.com On Monday, February 11, 2002, at 09:34 PM, Jason Whitaker wrote:
I just saw something with my code there.. i have my <link tag inside the title tag.. i will have to fix that :) -- Jason Whitaker "Jason Whitaker" <jwhitaker@gmx.net> wrote in message news:20020212051153.77383.qmail@pb1.pair.com... : Is there a way to set a variable or is there a function that takes the : information between the title tags and prints to the screen where you : command? : : ei: : : //<head> : //<title> : // <?php : // echo "<?witakr home?> : // ?> : // : //<LINK REL=stylesheet HREF="css/sCSS.css" TYPE="text/css"> : //</title> : //</head> : : where as i would want the word "home" from the echo "<?witakr home?>" (or : what ever word that may be in place of the word home) to print to say.. a : certain place in the body of the page? : : : Jason Whitaker : : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#84365) next »