What's wrong with my form!

I know it prolly looks bit messy, was working before i switched hosting I’m pretty sure. This is my tpl, is it a php problem with it not logging into the right sql database?

My countries are not showing up in form… :frowning: Wanted to get it working but maybe nothin I can do until coder gets back.

   {if $message_ip != ''}
      
      {$message_ip}
      
      {else}
      
      {$message_user_exists}
      
      {$message_email_exists}
      
      {$message_username}
      
      {$message_email}
      
      {$message_password}
      
      {$message_password_dont_match}
      
      {$message_member_not_added}
      
      {/if}
    <form name="signup" method="post" action="{php} echo $_SERVER['PHP_SELF'] {/php}">
      
  <table width="29%" border="0" align="center" cellpadding="4" cellspacing="4">
    <tr>
      <td width="1" rowspan="9" align="left">&nbsp;</td>
      <td colspan="2" align="left">&nbsp;</td>
      </tr>
    <tr>
      <td width="151" align="left">First Name:</td>
      <td width="213"  align="left"><input type="text" name="firstname" id="firstname" value="{$firstname}" /></td>
      </tr>
    <tr>
      <td align="left">Last Name:</td>
      <td align="left"><input type="text" name="lastname" id="lastname" value="{$lastname}" /></td>
      </tr>
    <tr>
      <td align="left">Email:</td>
      <td align="left"><input type="text" name="email" id="email" value="{$email}" /></td>
      </tr>
    <tr>
      <td align="left">Country:</td>
      <td align="left">
      <select name="country">
          {foreach from=$countries name=countries item=countries}
      <option value="{$countries.id}">{$countries.name}</option>
          {/foreach}
      </select></td>
      </tr>
    <tr>
      <td align="left">Username:</td>
      <td align="left"><input type="text" name="username" id="username" value="{$username}" /></td>
      </tr>
    <tr>
      <td align="left">Password:</td>
      <td align="left"><input type="password" name="password" id="password" /></td>
      </tr>
    <tr>
      <td align="left">Confirm Password:</td>
      <td align="left"><input type="password" name="confirm" id="confirm" /></td>
      </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="left"><input type="submit" name="signup" value="Sign Up" /></td>
      </tr>
    </table>
</form>