> F> <?php
> F> $table_1 = "<table><tr><td>".$name."</td></tr></table>";
> F> $table_2 = "<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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to