I would be very interested in a solution to this problem because I have a similar one.

I stored tables on a page.

examp:

$table_1 = "<table><tr><td>".$name."</td></tr></table>";
$table_2 = "<table><tr><td>".$message."</td></tr></table>";
etc...

and included the page and used the variables (echo $table_1;)

The table displayed as it should,
however the variables didn't have values( for $name, $message, etc..)

I began testing for the problem by defining the string variable for the table on the 
same page as the php code

examp:

<?php
$table_1 = "<table><tr><td>".$name."</td></tr></table>";
$table_2 = "<table><tr><td>".$message."</td></tr></table>";

$name = "blah blah";

if(blah blah){
    echo $table_1;}
else{
    echo $table_2;}
?>

Again, the tables printed fine, but the variables ($name, $message) had no values.


Most recently, I put the whole dam table in each conditional option.

    if (blah blah){  echo "<table><tr><td>".$name."</td></tr></table>";}

    else{  echo  "<table><tr><td>".$message."</td></tr></table>";}


Voila, the variables have values.

It would seem that if a solution was found for Jake's problem
it would also solve, or provide a key for solving, this one.

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

Reply via email to