Jump to content

Starting and Ending Code In Different PHP Scripts?


g1c9

Recommended Posts

Hey,

I am trying to display html between php code brackets if and only if a variable is set. For example:


[code]
<?php

if ($some_var == 1) { echo('

?>

if some_var is equal to 1 then this will display, otherwise it wont!

<?php

'); }

?>
[/code]

Is this even possible? Please help me achieve this!

Thanks in advance,

Cameron

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.