So I need to print out bunch of pre-defined globals on my page. I try using:
<?php foreach ( $GLOBALS as $key => $value ) { ?>
<dt><label for="<?php echo $key ?>">$key</label></dt>
<dd><input type="text" name="<?php echo $key ?>" value="<?php echo $value ?>" /></dd>
<?php } ?>
But that doesn't prints global variables, just some errors instead. How can I correctly get that list? I hope you get the idea of what I want. Thank you!