Re: Javascript Mouseover Help
| From: | Five | Date: | Thu, 18 Mar 2004 14:44:40 +0000 |
| Subject: | Re: Javascript Mouseover Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180829@lists.php.net to get a copy of this message | ||
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.