CodeIgniter Forums
</form> isn't showing up - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: </form> isn't showing up (/thread-36414.html)



</form> isn't showing up - El Forum - 11-30-2010

[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;?


&lt;/form&gt; isn't showing up - El Forum - 11-30-2010

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


&lt;/form&gt; isn't showing up - El Forum - 11-30-2010

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