I found an issue with using the PHP shortcut on my server. <? is the shortcut for <?php and is not always on by default on some servers. <?php is the full version and is usually recommended, as it will always works.
I changed these:
<?=$first_name?><?=$last_name?>
To these
<?php echo $first_name ?><?php echo $last_name ?>
And it worked just fine. This screenshot is from before I changed the code.
I found an issue with using the PHP shortcut on my server.
<?
is the shortcut for<?php
and is not always on by default on some servers.<?php
is the full version and is usually recommended, as it will always works.I changed these:
<?=$first_name?>
<?=$last_name?>
To these
<?php echo $first_name ?>
<?php echo $last_name ?>
And it worked just fine. This screenshot is from before I changed the code.