I messed something up and can't figure it out

  • bluedragon
  • Proficient
  • Proficient
  • bluedragon
  • Posts: 452

Post 3+ Months Ago

I am modifying a form and after my modifications, hitting the submit/apply button no longer does anything. Anyone have any idea what I did wrong here?

Original form
Code: [ Select ]
<?php $this->load->view(THEME . 'header'); ?>

<?php $this->load->view(THEME . 'sidebar'); ?>



<div id="main">
    
    <div class="box">
        <div class="header">
        <?php echo heading("Clan Apply", 4); ?>
        </div>
        <div class="content">
            <div class="inside">
                <div class="subheader">
                    <?php echo heading("Clan Application", 4); ?>
                </div>
        <?php if($show == "no"){ 
        
        if($error){
          echo "<div class='alert'>" . $error . "</div>";
        }
  
        }else {
        
          echo form_open('clanapply');
       
          if($squads){
            foreach($squads as $squad){
              $squadOption .="<option value='". $squad->squad_id ."'>". $squad->squad_title ."</option>";
            }
          }else{
            $squadOption = "<option disabled >No Listings</option>";
          }
          ?>
          
          
          <div class="label required">Squads</div>
          
          <?php echo $other . "<select name='squad_id' class='input'>". $squadOption ."</select>"; ?>
          
          <br />
          
          <div class="label required">Gamertag</div>
          <input type="text" name="gamertag" class="input" />
          <br />
          
          <div class="subheader">
                    <?php echo heading("Personal Information", 4); ?>
                  </div>
          
          <div class="label required">First Name</div>
          <input type="text" name="firstname" class="input" />
          <br />
          
          <div class="label required">Last Name</div>
          <input type="text" name="lastname" class="input" />
          <br />
          
          <div class="label required">Age</div>
          <?php
          for($i=12; $i < 100; $i++){$option .= "<option class='input' value='$i'>$i</option>";}
          ?>
          <select name="age"><?php echo $option; ?></select>
          <br />
          
          <div class="label required">Phone Number</div>
          <input type="text" name="phone" class="input" />
          <br />
          
          <div class="subheader">
                    <?php echo heading("Why should we pick you?", 4); ?>
                  </div>
          
          <textarea name="whypickyou" rows="9" cols="85"></textarea>
          <br />
          
          
          
          
          <?php
              $data = array('name'=>'clan_apply','class'=> 'submit','value'=> 'Apply');
            echo form_submit($data);
          ?>
          
          <div class="clear"></div>
          <?php
        echo form_close();
       
        }?>
            </div>
        </div>
        
        <div class="footer"></div>
    </div>
    
</div>

<?php $this->load->view(THEME . 'footer'); ?>
  1. <?php $this->load->view(THEME . 'header'); ?>
  2. <?php $this->load->view(THEME . 'sidebar'); ?>
  3. <div id="main">
  4.     
  5.     <div class="box">
  6.         <div class="header">
  7.         <?php echo heading("Clan Apply", 4); ?>
  8.         </div>
  9.         <div class="content">
  10.             <div class="inside">
  11.                 <div class="subheader">
  12.                     <?php echo heading("Clan Application", 4); ?>
  13.                 </div>
  14.         <?php if($show == "no"){ 
  15.         
  16.         if($error){
  17.           echo "<div class='alert'>" . $error . "</div>";
  18.         }
  19.   
  20.         }else {
  21.         
  22.           echo form_open('clanapply');
  23.        
  24.           if($squads){
  25.             foreach($squads as $squad){
  26.               $squadOption .="<option value='". $squad->squad_id ."'>". $squad->squad_title ."</option>";
  27.             }
  28.           }else{
  29.             $squadOption = "<option disabled >No Listings</option>";
  30.           }
  31.           ?>
  32.           
  33.           
  34.           <div class="label required">Squads</div>
  35.           
  36.           <?php echo $other . "<select name='squad_id' class='input'>". $squadOption ."</select>"; ?>
  37.           
  38.           <br />
  39.           
  40.           <div class="label required">Gamertag</div>
  41.           <input type="text" name="gamertag" class="input" />
  42.           <br />
  43.           
  44.           <div class="subheader">
  45.                     <?php echo heading("Personal Information", 4); ?>
  46.                   </div>
  47.           
  48.           <div class="label required">First Name</div>
  49.           <input type="text" name="firstname" class="input" />
  50.           <br />
  51.           
  52.           <div class="label required">Last Name</div>
  53.           <input type="text" name="lastname" class="input" />
  54.           <br />
  55.           
  56.           <div class="label required">Age</div>
  57.           <?php
  58.           for($i=12; $i < 100; $i++){$option .= "<option class='input' value='$i'>$i</option>";}
  59.           ?>
  60.           <select name="age"><?php echo $option; ?></select>
  61.           <br />
  62.           
  63.           <div class="label required">Phone Number</div>
  64.           <input type="text" name="phone" class="input" />
  65.           <br />
  66.           
  67.           <div class="subheader">
  68.                     <?php echo heading("Why should we pick you?", 4); ?>
  69.                   </div>
  70.           
  71.           <textarea name="whypickyou" rows="9" cols="85"></textarea>
  72.           <br />
  73.           
  74.           
  75.           
  76.           
  77.           <?php
  78.               $data = array('name'=>'clan_apply','class'=> 'submit','value'=> 'Apply');
  79.             echo form_submit($data);
  80.           ?>
  81.           
  82.           <div class="clear"></div>
  83.           <?php
  84.         echo form_close();
  85.        
  86.         }?>
  87.             </div>
  88.         </div>
  89.         
  90.         <div class="footer"></div>
  91.     </div>
  92.     
  93. </div>
  94. <?php $this->load->view(THEME . 'footer'); ?>


Modified form
Code: [ Select ]
<?php $this->load->view(THEME . 'header'); ?>

<?php $this->load->view(THEME . 'sidebar'); ?>



<div id="main">
    
    <div class="box">
        <div class="header">
        <?php echo heading("Clan Apply", 4); ?>
        </div>
        <div class="content">
            <div class="inside">
          <div class="subheader">
                    <?php echo heading("Rules", 4); ?>
                  </div>
<br>
1.) Just because you have been accepted or being accepted does not grant you the right to be a douche bag.<br>
2.) Don't argue with another member out in public chat EVER, especially with a moderator or admin.<br>
3.) Do not discriminate for creed, color, religion, sexuality, age, or any other thing that you can possibly make up. IT IS NOT TOLERATED.<br>
4.) In the Gaming Experience section, please list at the end that you have read the rules.<br>
5.) Bullying is something that is just plain stupid, do it and get removed.<br>
6.) Absolutely no racism.<br>
7.) We prefer to play with our own. If you have any obligations to any other clan, we suggest you think hard before applying to our clan.<br>
8.) Whether your rank is a Recruit or a General, under no circumstances are you to bully, harass, boss around, or over extend your power.<br>
9.) No hot micing or spamming music in teamspeak unless in a designated channel.<br><br>
                <div class="subheader">
                    <?php echo heading("Clan Application", 4); ?>
                </div>
        <?php if($show == "no"){ 
        
        if($error){
          echo "<div class='alert'>" . $error . "</div>";
        }
  
        }else {
        
          echo form_open('clanapply');
       
          if($squads){
            foreach($squads as $squad){
              $squadOption .="<option value='". $squad->squad_id ."'>". $squad->squad_title ."</option>";
            }
          }else{
            $squadOption = "<option disabled >No Listings</option>";
          }
          ?>
          
          
          <div class="label required">Game Applying For</div>
          
          <?php echo $other . "<select name='squad_id' class='input'>". $squadOption ."</select>"; ?>
          
          <br />
          
          <div class="label required">In-Game Name</div>
          <input type="text" name="gamertag" class="input" />
          <br />

          <div class="label required">Teamspeak Name</div>
          <input type="text" name="ts3name" class="input" />
          <br />
          
          <div class="subheader">
                    <?php echo heading("Personal Information", 4); ?>
                  </div>
          
          <div class="label required">First Name</div>
          <input type="text" name="firstname" class="input" />
          <br />
          
          <div class="label required">Last Name</div>
          <input type="text" name="lastname" class="input" />
          <br />
          
          <div class="label required">Age</div>
          <?php
          for($i=12; $i < 100; $i++){$option .= "<option class='input' value='$i'>$i</option>";}
          ?>
          <select name="age"><?php echo $option; ?></select>
          <br />

          <div class="label required">Timezone</div>
          <select name="DropDownTimezone" id="DropDownTimezone">
   <option value="-12.0">(GMT -12:00)</option>
   <option value="-11.0">(GMT -11:00)</option>
   <option value="-10.0">(GMT -10:00)</option>
   <option value="-9.0">(GMT -9:00)</option>
   <option value="-8.0">(GMT -8:00)</option>
   <option value="-7.0">(GMT -7:00)</option>
   <option value="-6.0">(GMT -6:00)</option>
   <option value="-5.0">(GMT -5:00)</option>
   <option value="-4.0">(GMT -4:00)</option>
   <option value="-3.5">(GMT -3:30)</option>
   <option value="-3.0">(GMT -3:00)</option>
   <option value="-2.0">(GMT -2:00)</option>
   <option value="-1.0">(GMT -1:00 hour)</option>
   <option value="0.0">(GMT)</option>
   <option value="1.0">(GMT +1:00 hour)</option>
   <option value="2.0">(GMT +2:00)</option>
   <option value="3.0">(GMT +3:00)</option>
   <option value="3.5">(GMT +3:30)</option>
   <option value="4.0">(GMT +4:00)</option>
   <option value="4.5">(GMT +4:30)</option>
   <option value="5.0">(GMT +5:00)</option>
   <option value="5.5">(GMT +5:30)</option>
   <option value="5.75">(GMT +5:45)</option>
   <option value="6.0">(GMT +6:00)</option>
   <option value="7.0">(GMT +7:00)</option>
   <option value="8.0">(GMT +8:00)</option>
   <option value="9.0">(GMT +9:00)</option>
   <option value="9.5">(GMT +9:30)</option>
   <option value="10.0">(GMT +10:00)</option>
   <option value="11.0">(GMT +11:00)</option>
   <option value="12.0">(GMT +12:00)</option>
</select>
          <br />

          <div class="label required">Email</div>
          <input type="text" name="email" class="input" />
          <br />

          <div class="label required">Confirm Email</div>
          <input type="text" name="email" class="input" />
          <br />

          <div class="label required">Steam ID</div>
          <input type="text" name="steamid" class="input" /> (Enter NONE if none.)
          <br />

          <div class="label required">Were you recruited by a community member
</div>
<script language="JavaScript" type="text/javascript">
<!--
function getOther(sel,fld){
    fld.style.display = (sel.selectedIndex==sel.options.length-1)?"inline":"none";
}
window.onload = function() {
    document.getElementById("oth").style.display = "none";
    document.getElementById("othLabel").style.display = "none";
}
//-->
</script>
<form>
<select name="sponsorship" onchange="getOther(this,this.form.oth);">
<option>No</option>
<option>Yes</option>
</select>
<label id="othLabel" for="oth">Recruiter Name</label><input type="text" name="oth" id="oth">
</form>
          <br />
<br>
<br>
          
          <div class="subheader">
                    <?php echo heading("List your experience with gaming", 4); ?>
                  </div>
          
          <textarea name="experience" rows="9" cols="85"></textarea>
          <br />
          
          
          
          
          <?php
              $data = array('name'=>'clan_apply','class'=> 'submit','value'=> 'Apply');
            echo form_submit($data);
          ?>
          
          <div class="clear"></div>
          <?php
        echo form_close();
       
        }?>
            </div>
        </div>
        
        <div class="footer"></div>
    </div>
    
</div>

<?php $this->load->view(THEME . 'footer'); ?>
  1. <?php $this->load->view(THEME . 'header'); ?>
  2. <?php $this->load->view(THEME . 'sidebar'); ?>
  3. <div id="main">
  4.     
  5.     <div class="box">
  6.         <div class="header">
  7.         <?php echo heading("Clan Apply", 4); ?>
  8.         </div>
  9.         <div class="content">
  10.             <div class="inside">
  11.           <div class="subheader">
  12.                     <?php echo heading("Rules", 4); ?>
  13.                   </div>
  14. <br>
  15. 1.) Just because you have been accepted or being accepted does not grant you the right to be a douche bag.<br>
  16. 2.) Don't argue with another member out in public chat EVER, especially with a moderator or admin.<br>
  17. 3.) Do not discriminate for creed, color, religion, sexuality, age, or any other thing that you can possibly make up. IT IS NOT TOLERATED.<br>
  18. 4.) In the Gaming Experience section, please list at the end that you have read the rules.<br>
  19. 5.) Bullying is something that is just plain stupid, do it and get removed.<br>
  20. 6.) Absolutely no racism.<br>
  21. 7.) We prefer to play with our own. If you have any obligations to any other clan, we suggest you think hard before applying to our clan.<br>
  22. 8.) Whether your rank is a Recruit or a General, under no circumstances are you to bully, harass, boss around, or over extend your power.<br>
  23. 9.) No hot micing or spamming music in teamspeak unless in a designated channel.<br><br>
  24.                 <div class="subheader">
  25.                     <?php echo heading("Clan Application", 4); ?>
  26.                 </div>
  27.         <?php if($show == "no"){ 
  28.         
  29.         if($error){
  30.           echo "<div class='alert'>" . $error . "</div>";
  31.         }
  32.   
  33.         }else {
  34.         
  35.           echo form_open('clanapply');
  36.        
  37.           if($squads){
  38.             foreach($squads as $squad){
  39.               $squadOption .="<option value='". $squad->squad_id ."'>". $squad->squad_title ."</option>";
  40.             }
  41.           }else{
  42.             $squadOption = "<option disabled >No Listings</option>";
  43.           }
  44.           ?>
  45.           
  46.           
  47.           <div class="label required">Game Applying For</div>
  48.           
  49.           <?php echo $other . "<select name='squad_id' class='input'>". $squadOption ."</select>"; ?>
  50.           
  51.           <br />
  52.           
  53.           <div class="label required">In-Game Name</div>
  54.           <input type="text" name="gamertag" class="input" />
  55.           <br />
  56.           <div class="label required">Teamspeak Name</div>
  57.           <input type="text" name="ts3name" class="input" />
  58.           <br />
  59.           
  60.           <div class="subheader">
  61.                     <?php echo heading("Personal Information", 4); ?>
  62.                   </div>
  63.           
  64.           <div class="label required">First Name</div>
  65.           <input type="text" name="firstname" class="input" />
  66.           <br />
  67.           
  68.           <div class="label required">Last Name</div>
  69.           <input type="text" name="lastname" class="input" />
  70.           <br />
  71.           
  72.           <div class="label required">Age</div>
  73.           <?php
  74.           for($i=12; $i < 100; $i++){$option .= "<option class='input' value='$i'>$i</option>";}
  75.           ?>
  76.           <select name="age"><?php echo $option; ?></select>
  77.           <br />
  78.           <div class="label required">Timezone</div>
  79.           <select name="DropDownTimezone" id="DropDownTimezone">
  80.    <option value="-12.0">(GMT -12:00)</option>
  81.    <option value="-11.0">(GMT -11:00)</option>
  82.    <option value="-10.0">(GMT -10:00)</option>
  83.    <option value="-9.0">(GMT -9:00)</option>
  84.    <option value="-8.0">(GMT -8:00)</option>
  85.    <option value="-7.0">(GMT -7:00)</option>
  86.    <option value="-6.0">(GMT -6:00)</option>
  87.    <option value="-5.0">(GMT -5:00)</option>
  88.    <option value="-4.0">(GMT -4:00)</option>
  89.    <option value="-3.5">(GMT -3:30)</option>
  90.    <option value="-3.0">(GMT -3:00)</option>
  91.    <option value="-2.0">(GMT -2:00)</option>
  92.    <option value="-1.0">(GMT -1:00 hour)</option>
  93.    <option value="0.0">(GMT)</option>
  94.    <option value="1.0">(GMT +1:00 hour)</option>
  95.    <option value="2.0">(GMT +2:00)</option>
  96.    <option value="3.0">(GMT +3:00)</option>
  97.    <option value="3.5">(GMT +3:30)</option>
  98.    <option value="4.0">(GMT +4:00)</option>
  99.    <option value="4.5">(GMT +4:30)</option>
  100.    <option value="5.0">(GMT +5:00)</option>
  101.    <option value="5.5">(GMT +5:30)</option>
  102.    <option value="5.75">(GMT +5:45)</option>
  103.    <option value="6.0">(GMT +6:00)</option>
  104.    <option value="7.0">(GMT +7:00)</option>
  105.    <option value="8.0">(GMT +8:00)</option>
  106.    <option value="9.0">(GMT +9:00)</option>
  107.    <option value="9.5">(GMT +9:30)</option>
  108.    <option value="10.0">(GMT +10:00)</option>
  109.    <option value="11.0">(GMT +11:00)</option>
  110.    <option value="12.0">(GMT +12:00)</option>
  111. </select>
  112.           <br />
  113.           <div class="label required">Email</div>
  114.           <input type="text" name="email" class="input" />
  115.           <br />
  116.           <div class="label required">Confirm Email</div>
  117.           <input type="text" name="email" class="input" />
  118.           <br />
  119.           <div class="label required">Steam ID</div>
  120.           <input type="text" name="steamid" class="input" /> (Enter NONE if none.)
  121.           <br />
  122.           <div class="label required">Were you recruited by a community member
  123. </div>
  124. <script language="JavaScript" type="text/javascript">
  125. <!--
  126. function getOther(sel,fld){
  127.     fld.style.display = (sel.selectedIndex==sel.options.length-1)?"inline":"none";
  128. }
  129. window.onload = function() {
  130.     document.getElementById("oth").style.display = "none";
  131.     document.getElementById("othLabel").style.display = "none";
  132. }
  133. //-->
  134. </script>
  135. <form>
  136. <select name="sponsorship" onchange="getOther(this,this.form.oth);">
  137. <option>No</option>
  138. <option>Yes</option>
  139. </select>
  140. <label id="othLabel" for="oth">Recruiter Name</label><input type="text" name="oth" id="oth">
  141. </form>
  142.           <br />
  143. <br>
  144. <br>
  145.           
  146.           <div class="subheader">
  147.                     <?php echo heading("List your experience with gaming", 4); ?>
  148.                   </div>
  149.           
  150.           <textarea name="experience" rows="9" cols="85"></textarea>
  151.           <br />
  152.           
  153.           
  154.           
  155.           
  156.           <?php
  157.               $data = array('name'=>'clan_apply','class'=> 'submit','value'=> 'Apply');
  158.             echo form_submit($data);
  159.           ?>
  160.           
  161.           <div class="clear"></div>
  162.           <?php
  163.         echo form_close();
  164.        
  165.         }?>
  166.             </div>
  167.         </div>
  168.         
  169.         <div class="footer"></div>
  170.     </div>
  171.     
  172. </div>
  173. <?php $this->load->view(THEME . 'footer'); ?>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 475

Post 3+ Months Ago

Do you have any output from after the PHP has ran an built the form to look at?
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 475

Post 3+ Months Ago

I also see a form inside a form

what's the purpose of this form?
HTML Code: [ Select ]
<form>
<select name="sponsorship" onchange="getOther(this,this.form.oth);">
<option>No</option>
<option>Yes</option>
</select>
<label id="othLabel" for="oth">Recruiter Name</label><input type="text" name="oth" id="oth">
</form>
 
  1. <form>
  2. <select name="sponsorship" onchange="getOther(this,this.form.oth);">
  3. <option>No</option>
  4. <option>Yes</option>
  5. </select>
  6. <label id="othLabel" for="oth">Recruiter Name</label><input type="text" name="oth" id="oth">
  7. </form>
  8.  
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 475

Post 3+ Months Ago

If your need those fields in the form remove the form tags on this so the code is this
HTML Code: [ Select ]
<?php $this->load->view(THEME . 'header'); ?>
 
<?php $this->load->view(THEME . 'sidebar'); ?>
 
 
 
<div id="main">
   
   <div class="box">
      <div class="header">
      <?php echo heading("Clan Apply", 4); ?>
      </div>
      <div class="content">
         <div class="inside">
                    <div class="subheader">
               <?php echo heading("Rules", 4); ?>
                </div>
<br>
1.) Just because you have been accepted or being accepted does not grant you the right to be a douche bag.<br>
2.) Don't argue with another member out in public chat EVER, especially with a moderator or admin.<br>
3.) Do not discriminate for creed, color, religion, sexuality, age, or any other thing that you can possibly make up. IT IS NOT TOLERATED.<br>
4.) In the Gaming Experience section, please list at the end that you have read the rules.<br>
5.) Bullying is something that is just plain stupid, do it and get removed.<br>
6.) Absolutely no racism.<br>
7.) We prefer to play with our own. If you have any obligations to any other clan, we suggest you think hard before applying to our clan.<br>
8.) Whether your rank is a Recruit or a General, under no circumstances are you to bully, harass, boss around, or over extend your power.<br>
9.) No hot micing or spamming music in teamspeak unless in a designated channel.<br><br>
            <div class="subheader">
               <?php echo heading("Clan Application", 4); ?>
            </div>
                <?php if($show == "no"){  
               
               if($error){
                   echo "<div class='alert'>" . $error . "</div>";
                }
   
                }else {
               
                    echo form_open('clanapply');
             
                    if($squads){
                        foreach($squads as $squad){
                            $squadOption .="<option value='". $squad->squad_id ."'>". $squad->squad_title ."</option>";
                        }
                    }else{
                        $squadOption = "<option disabled >No Listings</option>";
                    }
                    ?>
                   
                   
                    <div class="label required">Game Applying For</div>
                   
                    <?php echo $other .  "<select name='squad_id' class='input'>". $squadOption ."</select>"; ?>
                   
                    <br />
                   
                    <div class="label required">In-Game Name</div>
                    <input type="text" name="gamertag" class="input" />
                    <br />
 
                    <div class="label required">Teamspeak Name</div>
                    <input type="text" name="ts3name" class="input" />
                    <br />
                   
                    <div class="subheader">
               <?php echo heading("Personal Information", 4); ?>
                </div>
                   
                    <div class="label required">First Name</div>
                    <input type="text" name="firstname" class="input" />
                    <br />
                   
                    <div class="label required">Last Name</div>
                    <input type="text" name="lastname" class="input" />
                    <br />
                   
                    <div class="label required">Age</div>
                    <?php
                   for($i=12; $i < 100; $i++){$option .= "<option class='input' value='$i'>$i</option>";}
                    ?>
                    <select name="age"><?php echo $option; ?></select>
                    <br />
 
                    <div class="label required">Timezone</div>
                    <select name="DropDownTimezone" id="DropDownTimezone">
      <option value="-12.0">(GMT -12:00)</option>
      <option value="-11.0">(GMT -11:00)</option>
      <option value="-10.0">(GMT -10:00)</option>
      <option value="-9.0">(GMT -9:00)</option>
      <option value="-8.0">(GMT -8:00)</option>
      <option value="-7.0">(GMT -7:00)</option>
      <option value="-6.0">(GMT -6:00)</option>
      <option value="-5.0">(GMT -5:00)</option>
      <option value="-4.0">(GMT -4:00)</option>
      <option value="-3.5">(GMT -3:30)</option>
      <option value="-3.0">(GMT -3:00)</option>
      <option value="-2.0">(GMT -2:00)</option>
      <option value="-1.0">(GMT -1:00 hour)</option>
      <option value="0.0">(GMT)</option>
      <option value="1.0">(GMT +1:00 hour)</option>
      <option value="2.0">(GMT +2:00)</option>
      <option value="3.0">(GMT +3:00)</option>
      <option value="3.5">(GMT +3:30)</option>
      <option value="4.0">(GMT +4:00)</option>
      <option value="4.5">(GMT +4:30)</option>
      <option value="5.0">(GMT +5:00)</option>
      <option value="5.5">(GMT +5:30)</option>
      <option value="5.75">(GMT +5:45)</option>
      <option value="6.0">(GMT +6:00)</option>
      <option value="7.0">(GMT +7:00)</option>
      <option value="8.0">(GMT +8:00)</option>
      <option value="9.0">(GMT +9:00)</option>
      <option value="9.5">(GMT +9:30)</option>
      <option value="10.0">(GMT +10:00)</option>
      <option value="11.0">(GMT +11:00)</option>
      <option value="12.0">(GMT +12:00)</option>
</select>
                    <br />
 
                    <div class="label required">Email</div>
                    <input type="text" name="email" class="input" />
                    <br />
 
                    <div class="label required">Confirm Email</div>
                    <input type="text" name="email" class="input" />
                    <br />
 
                    <div class="label required">Steam ID</div>
                    <input type="text" name="steamid" class="input" /> (Enter NONE if none.)
                    <br />
 
                    <div class="label required">Were you recruited by a community member
</div>
<script language="JavaScript" type="text/javascript">
<!--
function getOther(sel,fld){
   fld.style.display = (sel.selectedIndex==sel.options.length-1)?"inline":"none";
}
window.onload = function() {
   document.getElementById("oth").style.display = "none";
   document.getElementById("othLabel").style.display = "none";
}
//-->
</script>
<!-- <form>  I'm taking these out -->
<select name="sponsorship" onchange="getOther(this,this.form.oth);">
<option>No</option>
<option>Yes</option>
</select>
<label id="othLabel" for="oth">Recruiter Name</label><input type="text" name="oth" id="oth">
<!-- </form>  I'm taking these out -->
                    <br />
<br>
<br>
                   
                    <div class="subheader">
               <?php echo heading("List your experience with gaming", 4); ?>
                </div>
                   
                    <textarea name="experience" rows="9" cols="85"></textarea>
                    <br />
                   
                   
                   
                   
                    <?php
                      $data = array('name'=>'clan_apply','class'=> 'submit','value'=> 'Apply');
                        echo form_submit($data);
                    ?>
                   
                    <div class="clear"></div>
              <?php
               echo form_close();
             
               }?>
         </div>
      </div>
     
      <div class="footer"></div>
   </div>
   
</div>
 
<?php $this->load->view(THEME . 'footer'); ?>
 
  1. <?php $this->load->view(THEME . 'header'); ?>
  2.  
  3. <?php $this->load->view(THEME . 'sidebar'); ?>
  4.  
  5.  
  6.  
  7. <div id="main">
  8.    
  9.    <div class="box">
  10.       <div class="header">
  11.       <?php echo heading("Clan Apply", 4); ?>
  12.       </div>
  13.       <div class="content">
  14.          <div class="inside">
  15.                     <div class="subheader">
  16.                <?php echo heading("Rules", 4); ?>
  17.                 </div>
  18. <br>
  19. 1.) Just because you have been accepted or being accepted does not grant you the right to be a douche bag.<br>
  20. 2.) Don't argue with another member out in public chat EVER, especially with a moderator or admin.<br>
  21. 3.) Do not discriminate for creed, color, religion, sexuality, age, or any other thing that you can possibly make up. IT IS NOT TOLERATED.<br>
  22. 4.) In the Gaming Experience section, please list at the end that you have read the rules.<br>
  23. 5.) Bullying is something that is just plain stupid, do it and get removed.<br>
  24. 6.) Absolutely no racism.<br>
  25. 7.) We prefer to play with our own. If you have any obligations to any other clan, we suggest you think hard before applying to our clan.<br>
  26. 8.) Whether your rank is a Recruit or a General, under no circumstances are you to bully, harass, boss around, or over extend your power.<br>
  27. 9.) No hot micing or spamming music in teamspeak unless in a designated channel.<br><br>
  28.             <div class="subheader">
  29.                <?php echo heading("Clan Application", 4); ?>
  30.             </div>
  31.                 <?php if($show == "no"){  
  32.                
  33.                if($error){
  34.                    echo "<div class='alert'>" . $error . "</div>";
  35.                 }
  36.    
  37.                 }else {
  38.                
  39.                     echo form_open('clanapply');
  40.              
  41.                     if($squads){
  42.                         foreach($squads as $squad){
  43.                             $squadOption .="<option value='". $squad->squad_id ."'>". $squad->squad_title ."</option>";
  44.                         }
  45.                     }else{
  46.                         $squadOption = "<option disabled >No Listings</option>";
  47.                     }
  48.                     ?>
  49.                    
  50.                    
  51.                     <div class="label required">Game Applying For</div>
  52.                    
  53.                     <?php echo $other .  "<select name='squad_id' class='input'>". $squadOption ."</select>"; ?>
  54.                    
  55.                     <br />
  56.                    
  57.                     <div class="label required">In-Game Name</div>
  58.                     <input type="text" name="gamertag" class="input" />
  59.                     <br />
  60.  
  61.                     <div class="label required">Teamspeak Name</div>
  62.                     <input type="text" name="ts3name" class="input" />
  63.                     <br />
  64.                    
  65.                     <div class="subheader">
  66.                <?php echo heading("Personal Information", 4); ?>
  67.                 </div>
  68.                    
  69.                     <div class="label required">First Name</div>
  70.                     <input type="text" name="firstname" class="input" />
  71.                     <br />
  72.                    
  73.                     <div class="label required">Last Name</div>
  74.                     <input type="text" name="lastname" class="input" />
  75.                     <br />
  76.                    
  77.                     <div class="label required">Age</div>
  78.                     <?php
  79.                    for($i=12; $i < 100; $i++){$option .= "<option class='input' value='$i'>$i</option>";}
  80.                     ?>
  81.                     <select name="age"><?php echo $option; ?></select>
  82.                     <br />
  83.  
  84.                     <div class="label required">Timezone</div>
  85.                     <select name="DropDownTimezone" id="DropDownTimezone">
  86.       <option value="-12.0">(GMT -12:00)</option>
  87.       <option value="-11.0">(GMT -11:00)</option>
  88.       <option value="-10.0">(GMT -10:00)</option>
  89.       <option value="-9.0">(GMT -9:00)</option>
  90.       <option value="-8.0">(GMT -8:00)</option>
  91.       <option value="-7.0">(GMT -7:00)</option>
  92.       <option value="-6.0">(GMT -6:00)</option>
  93.       <option value="-5.0">(GMT -5:00)</option>
  94.       <option value="-4.0">(GMT -4:00)</option>
  95.       <option value="-3.5">(GMT -3:30)</option>
  96.       <option value="-3.0">(GMT -3:00)</option>
  97.       <option value="-2.0">(GMT -2:00)</option>
  98.       <option value="-1.0">(GMT -1:00 hour)</option>
  99.       <option value="0.0">(GMT)</option>
  100.       <option value="1.0">(GMT +1:00 hour)</option>
  101.       <option value="2.0">(GMT +2:00)</option>
  102.       <option value="3.0">(GMT +3:00)</option>
  103.       <option value="3.5">(GMT +3:30)</option>
  104.       <option value="4.0">(GMT +4:00)</option>
  105.       <option value="4.5">(GMT +4:30)</option>
  106.       <option value="5.0">(GMT +5:00)</option>
  107.       <option value="5.5">(GMT +5:30)</option>
  108.       <option value="5.75">(GMT +5:45)</option>
  109.       <option value="6.0">(GMT +6:00)</option>
  110.       <option value="7.0">(GMT +7:00)</option>
  111.       <option value="8.0">(GMT +8:00)</option>
  112.       <option value="9.0">(GMT +9:00)</option>
  113.       <option value="9.5">(GMT +9:30)</option>
  114.       <option value="10.0">(GMT +10:00)</option>
  115.       <option value="11.0">(GMT +11:00)</option>
  116.       <option value="12.0">(GMT +12:00)</option>
  117. </select>
  118.                     <br />
  119.  
  120.                     <div class="label required">Email</div>
  121.                     <input type="text" name="email" class="input" />
  122.                     <br />
  123.  
  124.                     <div class="label required">Confirm Email</div>
  125.                     <input type="text" name="email" class="input" />
  126.                     <br />
  127.  
  128.                     <div class="label required">Steam ID</div>
  129.                     <input type="text" name="steamid" class="input" /> (Enter NONE if none.)
  130.                     <br />
  131.  
  132.                     <div class="label required">Were you recruited by a community member
  133. </div>
  134. <script language="JavaScript" type="text/javascript">
  135. <!--
  136. function getOther(sel,fld){
  137.    fld.style.display = (sel.selectedIndex==sel.options.length-1)?"inline":"none";
  138. }
  139. window.onload = function() {
  140.    document.getElementById("oth").style.display = "none";
  141.    document.getElementById("othLabel").style.display = "none";
  142. }
  143. //-->
  144. </script>
  145. <!-- <form>  I'm taking these out -->
  146. <select name="sponsorship" onchange="getOther(this,this.form.oth);">
  147. <option>No</option>
  148. <option>Yes</option>
  149. </select>
  150. <label id="othLabel" for="oth">Recruiter Name</label><input type="text" name="oth" id="oth">
  151. <!-- </form>  I'm taking these out -->
  152.                     <br />
  153. <br>
  154. <br>
  155.                    
  156.                     <div class="subheader">
  157.                <?php echo heading("List your experience with gaming", 4); ?>
  158.                 </div>
  159.                    
  160.                     <textarea name="experience" rows="9" cols="85"></textarea>
  161.                     <br />
  162.                    
  163.                    
  164.                    
  165.                    
  166.                     <?php
  167.                       $data = array('name'=>'clan_apply','class'=> 'submit','value'=> 'Apply');
  168.                         echo form_submit($data);
  169.                     ?>
  170.                    
  171.                     <div class="clear"></div>
  172.               <?php
  173.                echo form_close();
  174.              
  175.                }?>
  176.          </div>
  177.       </div>
  178.      
  179.       <div class="footer"></div>
  180.    </div>
  181.    
  182. </div>
  183.  
  184. <?php $this->load->view(THEME . 'footer'); ?>
  185.  


Give this a try
  • bluedragon
  • Proficient
  • Proficient
  • bluedragon
  • Posts: 452

Post 3+ Months Ago

Thank you Scott, fixed it right up!
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 475

Post 3+ Months Ago

np

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 82 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.