PHP (Query Strings)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
pao

PHP (Query Strings)

Post by pao »

HI,

When I try to add a user defined tag, I resive an error - it is not possible to ad a simple query?

Code: Select all

<a href="index.php?live=ye">side status = <? if (isset(live)) {echo $live;} else {echo "no"} ?></a>
Is it me who is making it wrong ?

thanks in advance

// Peter
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

PHP (Query Strings)

Post by Ted »

Keep in mind that an user defined tag has already put the start php tag in for you...

You want something like:

Code: Select all

?><a href="index.php?live=ye">side status = <?php if (isset(live)) {echo $live;} else {echo "no"} ?></a><?php
instead.
pao

PHP (Query Strings)

Post by pao »

:oops: I forgot...

Thanks :lol:
Locked

Return to “CMSMS Core”