Re: Re: Javascript Mouseover Help

From: Date: Thu, 18 Mar 2004 15:11:52 +0000
Subject: Re: Re: Javascript Mouseover Help
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-180831@lists.php.net to get a copy of this message
> F> <?php > F> $table_1 = > F> "<table><tr><td>".$name."</td></tr></table>"; > F> $table_2 = > F> "<table><tr><td>".$message."</td></tr></table>"; > > F> $name = "blah blah"; > > F> if(blah blah){ > F> echo $table_1;} > F> else{ > F> echo $table_2;} > ?>> > > You have to define variable $name before you try to use it. > The only other way would be to eval the string but that is not the way > to go :) Doesn't $name = "blah blah"; define it enough?

« previous php.general (#180831) next »