My current host doesnt allow PHP short tags(<? instead of <?php) which is mainly why im switching hosts but what is the solution to this problem?
Heres the original code:
[PHP]<?= $message ?>[/PHP]
Now if i simply replace <? with <?php it wont work. It throws up an unexpected error. How can I rewrite the above to do the same thing but so it works with <?php tags?
Thanks
Comments
<?php code here ?>
And if you want the variable $message displayed, it'd be this:
<?php print($message); ?>
DinoSIG: Free dynamic forum signatures
<input type=text size=40 name=base_path value="<?= $base_path ?>
That is simply a text input box where the value is $base_path. Now usually I would solve this by simply doing what you done and echo it out however this has an = sign before it which i dont know why
The Royal Ram
sorry, my mistake, hehe
The Royal Ram
DinoSIG: Free dynamic forum signatures
I just echoed out the variables and it was sorted...first time I done this it didnt work...I think I might have missed something first time round,
The Royal Ram