i am wandering why this script doesn't work. i tested the php script on a different page were it wasn't inserted into a table cell.
the $joketext comes from a different page using a hyperlink that takes this value.
is there something special when i want to use it in a table?
thank you in advance:
New Page 1
|
<?php echo($joketext); ?> |
|
Comments
did you save it as a .HTML or a .PHP file?
and you could try this:
<?php
if( isset( $joketext ) )
echo $joketext;
else
echo "No joketext";
?>
this should always render _something_ so if it doesn't you know the
PHP code doesn't run.
andrea
: : i am wandering why this script doesn't work.
: did you save it as a .HTML or a .PHP file?
:
: and you could try this:
:
: <?php
: if( isset( $joketext ) )
: echo $joketext;
: else
: echo "No joketext";
: ?>
:
: this should always render _something_ so if it doesn't you know the
: PHP code doesn't run.
:
:
:
:
yes, there can be - depending on your browser, the "rendering" of active elements inside a table cell can be very problematic.
a solution would be to also use php to 'draw' the table; like
echo '
etc etc