title: PHP "else" and "if" on code for registration script
body: <p>I purchased a script a while ago (PHP/MySQL) that contains a user registration form.  The script has an area for selection of Gender (Male or Female).  Two options.</p>
  
  <p>I want to modify this code to allow for selection of an Animal instead of a sex.  I changed the code in all applicable places, and it works great.  The problem is, it only displays animals 1 and 2, since the initial code was setup for a "male/female" selection (2).  </p>
  
  <p>I need to find a way for the code to allow for up to 15 animals instead of just 2 results.  Here is the code.  "profile_userinfo_gender1" and "gender2" are what call the "gender" or "animal".  They should go up to "gender15".  Please help!  Thank you!</p>
  
  <pre><code>    if ($D-&gt;u-&gt;gender == 0) $D-&gt;gender = $this-&gt;lang('profile_userinfo_withoutinfo');
      else {
          if ($D-&gt;u-&gt;gender == 1) $D-&gt;gender = $this-&gt;lang('profile_userinfo_gender1');
          else $D-&gt;gender = $this-&gt;lang('profile_userinfo_gender2');
      }
  </code></pre>