• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
</form> isn't showing up

#1
[eluser]Jakobud[/eluser]
I have a basic form on my page and form_close() isn't creating the </form>.

Anyone have any clues? here is some of my code:

Code:
<div style='float: right'>

        &lt;?php echo form_open('lead/delete', array('id'=>'form_delete', 'name'=>'form_delete'));

        echo form_input(array('name'=>'delete', 'id'=>'delete', 'value'=>'true', 'type'=>'hidden'));
        echo form_input(array('name'=>'id', 'id'=>'id', 'value'=>$lead->id, 'type'=>'hidden'));

        echo $edit_lead; echo $delete_lead;

        form_close(); ?&gt;

    </div>

results in this:

Code:
<div style='float: right'>

        &lt;form action="http://augusta/peaksales/lead/delete" method="post" id="form_delete" name="form_delete"&gt;
&lt;input type="hidden" name="delete" value="true" id="delete"  /&gt;
&lt;input type="hidden" name="id" value="100" id="id"  /&gt;
<button name="edit_lead" type="button" id="edit_lead" class="button-orange bold" >Edit Lead</button>
<button name="delete_lead" type="button" id="delete_lead" class="button-grey bold" >Delete Lead</button>
    </div>

Where is the &lt;/form&gt;?

#2
[eluser]Jakobud[/eluser]
Nevermind... wasn't echoing the form_close(). Brilliant :-(

#3
[eluser]teampoop[/eluser]
It's the little things that make programming fun, right? Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.